Link Details

Link 63595 thumbnail
User 225256 avatar

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.
  • 5
  • 5
  • 1278
  • 441

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (5)



Voters Against This Link (5)