> > As long as the file isn't closed there shouldn't be a problem with the > > filesystem reclaiming the space. On Win32, the corresponding effect can be achieved by open()ing the file with _O_TEMPORARY. I really should have done that long ago, as the open() call in question is currently in an #ifdef anyway because of _O_BINARY... (The #ifdef should be removed, it's much cleaner to simply #define _O_BINARY and _O_TEMPORARY as 0 if they don't exist (at the top of the source file).) --tml