Re:Japanese peer-to-peer (2008)
by Dylan16807 on Tuesday July 09, 2013 @01:06PM
(#6013757)
If you do that the space is still occupied. And the file deletes itself whenever the service is restarted, which is also undesirable.
What you'd be better off doing on Unix type OSes is creating a large empty file, deleting it but keeping the file handle, and reading/writing that. That's a traditional way to make a self erasing scratch file.
It doesn't work on Windows, though, because Windows won't let you delete a file that's open.