开发者

Overwriting, saving, using stream. Are they really different?

I want to make a file unusable. Does it really make sense if I overwrite it?

Is there a difference betwe开发者_StackOverflow中文版en overwriting, using stream, saving or just appending text?

Note: I want to delete the file afterwards and avoid recovery.


Appending probably won't help. If you open the file for reading and writing, point to the beginning, and start writing, that probably has the best chance of working (from a high-level language like C#).

You may have to get even lower-level to really do this, otherwise you risk the OS using a different portion of the disk for your new data, defeating the purpose. But I suspect the above should work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜