I\'m developing an application which checks for changes made to a file by a separate program (not written by me).
If a change is detected, it opens the file, reads t
Yes, you can open a file in a so called Exclusive-Mode. This means nobody than yourself can read or write to that file.
If you take a look into the File.Open() function. There exists a parameter FileShare which can be set to None.
None