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?
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?
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.