News for hackers. Stuff that matters.
Re:Japanese peer-to-peer (2008) by JulianMorrison on Tuesday July 09, 2013 @10:50AM (#6012930)
There is no generalized way to access the free space of a mounted and mutable file system.

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.

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.