Looking at the path of a string, I want to erase the content of a file I thought that natural May be mistaken) to open a file stream in the file and write random (random data that was taken from RNGCryptoServiceProvider) and then maybe do it several times and then delete the file.
My problem is that when it seems logically correct, I read on another blog that Windows can actually choose to write the file in a different place on the hard disk.
Is this a case in Windows Mobile? Will this really be a problem? Does writing at a different place in the hard disk also apply to flash based (SD) cards?
I did not do it individually, but you have a low level flash driver IOCLL correctly Will need to be used.
I think that seems particularly useful.
-PaulH
There is another possibility that can usually work to erase the file, then use Defragment API to erase all the freepaces on your flash. Since you wipe everything out, it will not be necessary to know where your file was on the disk. But, this will speed up your flash drive. The C # method is detailed in this blog post:
Comments
Post a Comment