c# - How can I read a file that is in use by another process? -


this question has answer here:

i need read file in use process. how can achieve in c#?

thanks!

if other process put exclusive lock on file, don't read it. other process locked file reason; not try defeat other program. if think other program locking file unnecessarily, take author of other program.

if put non-exclusive lock on file, request shared access file rather requesting exclusive access.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -