I believe that checking to see whether a file exists before creating it can create a race condition. I've been told that the better way to do this is to create the file, and deal with the exception thrown if the file already exists.
In reply to Re: Check if a file exists and if not create it
by Aldebaran
in thread Check if a file exists and if not create it
by Wroof
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |