just wondering, taking a random file from the hard disk, correct me if im wong, the program basicly locates the offset and size by referencing the filename with the FAT, then reads directly from the HDD given the offset, so if i was to open a file for binary output and i wrote from the offset to the sizeof the file then i would effectively be permanantly overwriting the files data, so say if it was an inportant document, by reading the file and write'ing (char)0; until the end of file, am i actualy overwriting the files contents? in efect formating a specified part of the HDD? rather than deleting a file (just removing it from FAT) im Shredding the file so to speak... or does it not work like this?
any ideas? thinking of making a software "file shredder"