Why am I getting a Unhandled Exception: System.IO.IOException when trying to read from a file being written to?
问题 I have two C# applications, one is reading a file (File A) line by line and writing its contents to a different file (File B). The second application is using FileSystemWatcher for File B to see when it is updated and reporting the difference is line numbers between when the program was started and when the file was changed. Thats all I am trying to do for now, ultimately I want to read the lines between when the file was last read and the current read but until I can get the line difference