K
Kai Thorsrud
Hi!
I'm working on a log reader and i access the logfile with a FileStream. If
the logfile get's flooded it might be that the logfile is locked when i try
to open it for reading. The Open method throws an exception. What i want to
do is to check if the file is locked before i try to open it so that i can
take the proper actions.
How can i check if a file is locked ? The FileStream class doesn't seem to
support this or atleast i cant find it in the msdn doc.
Feedback is appreciated.
/Kai
I'm working on a log reader and i access the logfile with a FileStream. If
the logfile get's flooded it might be that the logfile is locked when i try
to open it for reading. The Open method throws an exception. What i want to
do is to check if the file is locked before i try to open it so that i can
take the proper actions.
How can i check if a file is locked ? The FileStream class doesn't seem to
support this or atleast i cant find it in the msdn doc.
Feedback is appreciated.
/Kai