in reply to How do I test to see if another process is writing to a file (in Windows)

Checking to see if the file is open and then trying to open it introduces a race condition. It's better to just try to open the file, then handle any errors from not being able to do so.
  • Comment on Re: How do I test to see if another process is writing to a file (in Windows)