I want to be able to read .log files, I can specify the type of file to be returned but it breaks and can't open the file even though it contains plain text! Why is this?
Reading files of all types
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

AlanRank #669 · 3.6K reputationPosted Jun 15, 2007, 2:29 AM EDT
If the .log file is currently in use by your application, or by some other process, then it'll need to be closed first before it can be reopened and read via a StreamReader.
Drew Taylor66 reputationPosted Jun 15, 2007, 4:12 AM EDT
Yes I saw the error message, what about when the user clicks the button it makes a copy of the log file and then reads that one? And then I could have another button called refresh which copys and opens the copied file again?
AlanRank #669 · 3.6K reputationPosted Jun 15, 2007, 6:24 AM EDT