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
Post a Comment