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" <Leon@discussions.microsoft.com> a écrit dans le message de
news:806FEFD9-AD01-4D66-AB9E-F36554B5E891@microsoft.com...
[quoted text, click to view] > 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