Safely remove files...
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
I am working on a project where I would need to remove a file safely (owerwrite the file data with other). How can I access the cluster directly within a MFC program?:confused:
I'm making a couple of assumptions here, so if this isn't what you're looking for provide additional detail... You can create a CFile, and open it shareExclusive, that will prevent others from working with it or reading it while you have it open. You can then Seek to a specific location within the file, and write your new data to that spot, then close the file. Check out the documentation for CFile. Hope this helps Jeff