in reply to Check if a file exists and if not create it
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.
|
|---|