N
nano2k
Hi
My C# webservice uses a file to store some (short) information between
calls.
One method creates/updates the content of a file, another reads it.
What is the best method to avoid issues like "file is already opened by
another process", etc between calls?
Using Monitor.Enter(...) and Monitor.Exit(...) (or lock statement in
C#) will gracefully solve my problem in every situation?
Thanks.
Adi.
My C# webservice uses a file to store some (short) information between
calls.
One method creates/updates the content of a file, another reads it.
What is the best method to avoid issues like "file is already opened by
another process", etc between calls?
Using Monitor.Enter(...) and Monitor.Exit(...) (or lock statement in
C#) will gracefully solve my problem in every situation?
Thanks.
Adi.