> A standard trick is to write to a randomly named temp file (in the same
> directory, usually.) When you've closed that file, rename the temp file
> to the real file. The rename operation is atomic so you can avoid any
> other synchronization.
How do you generate a guaranteed unique name for a file, e.g. the Java
equivalent of gettmpnam?
- donald
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://www.working-dogs.com/>
Problems?: [EMAIL PROTECTED]