|
the problem is file access.
It is not possible that 2 programs access the same file at the same time.
If you had looked at the error message you'd have found out on your own.
To prevent that you can try to copy the log file, read it and then delete the copy.
Also I suggest you take a look at error handling, this is pretty important when dealing with IO in c# (and any other programming language).
Best regards,
Rajin
|