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.
http://www.gnu.org/software/coreutils/manual/html_node/shred... "Please note that shred relies on a very important assumption: that the file system overwrites data in place. This is the traditional way to do things, but many modern file system designs do not satisfy this assumption. Exceptions include:
Log-structured or journaled file systems, such as those supplied with AIX and Solaris, and JFS, ReiserFS, XFS, Ext3 (in data=journal mode), BFS, NTFS, etc., when they are configured to journal data. File systems that write redundant data and carry on even if some writes fail, such as RAID-based file systems. File systems that make snapshots, such as Network Appliance's NFS server. File systems that cache in temporary locations, such as NFS version 3 clients. Compressed file systems."
That way users don't have to face the idea of "giving up" their disk space to be part of the network.