By mswatcher
via blogs.x2line.com
Published: Jan 30 2008 / 19:50
I'm trying to read a txt file using StreamReader, but the file is locked by another process. The problem is that, since this is a log file I can't stop the other process that is using it.
Even if one makes sure to specify the proper FileAccess and FileShare modes when opening the file she won't be able to read it if the other program has opened the file with an exclusive lock.
Add your comment