Answered Overwriting file in C#

  • Wednesday, April 30, 2008 9:10 PM
     
     

    I want to overwrite file in exact the same area on harddisc where  file was created. Methods that File class offer seem not working like that.

All Replies

  • Wednesday, April 30, 2008 10:47 PM
    Moderator
     
     Answered
    That would take a device driver.  User mode programs have no control whatsoever over the way the file system maps file blocks to disk sectors.  Post to a DDK news group if you really want to pursue this.