Atomic file creation with temporary files
Posted by Richard Maw