Is there a way to open file for writing so that the opening
fails if the file already exist? This needs to be atomic
operation so that it is possible to use the file as a
semaphore. As a result, the following coding does not do:
if (!file.exist()) {
// open the file for writing
...
A similar function definitely exists for accessing files in
UN*X environments.
Thank you, Dan