C# Programming
08-24-2009, 02:11 PM
Hi every one
I have a log file that continually is filling by a application.
How can I read the log file?
I tried
StreamReader tr=new StreamReader("d:\\theLogFile.txt");
MessageBox.Show(tr.ReadLine());
but got "The process cannot access the file because it is being used by another process." error.
help please?
thanks.
I have a log file that continually is filling by a application.
How can I read the log file?
I tried
StreamReader tr=new StreamReader("d:\\theLogFile.txt");
MessageBox.Show(tr.ReadLine());
but got "The process cannot access the file because it is being used by another process." error.
help please?
thanks.