Relating to my earlier post: Smartest way to monitor log-files in realtime?
I want a FileSystemWatcher to detect changes of a text file (logfile) and afterwards I want it to show me the latest changes!
They are big files >50bm, and a full scan almost every second is very time-consuming.
I though .last()
could help, but this code only returns the last row:
File.ReadText(@"C:\Filename.txt").Last();
I need some code that can continue reading from the last spot and just determine and returns the changes.