Do you open the file in read only mode ?
If not, give it a try.
If you do already then the file is likely locked exclusively making possible
to even read its content. You'll have then to wait for this file to be
closed...
Patrice
--
"Leon" <Le**@discussions.microsoft.com> a écrit dans le message de
news:80**********************************@microsof t.com...
I'm trying to read a locked log file with C# but i get an IOExeption
telling me that the file is in use by another process.
Is there a way to read the file?
the file is only 200k so if i cannot read it, is it possible to copy it to
a temp file and then read it?
please show me some examples
Cheers
// Leon