title: Check if a file that's not locked is open
body: <p>Some programs (image programs such as Paint, text editors such as notepad and Wordpad,and others) open files, load the contents into memory, then release the file lock. Is there a way to tell if a program is using that file even though it's not locked? </p>
  
  <p>For example, even if image1.bmp is open in Paint, my program can overwrite the copy of image1.bmp that's on the disk because the file isn't locked. Now the copy of image1.bmp that is open in Paint is different than the copy of image1.bmp that is on the disk.</p>
  
  <p>My program is written in C#. I usually use this method for checking if a file is locked, but it won't work in the above case.
  <a href="https://stackoverflow.com/questions/876473/is-there-a-way-to-check-if-a-file-is-in-use">Is there a way to check if a file is in use?</a></p>
  
  <p>Is there any solution to this?</p>