Question: How would I monitor a .txt log file with VB.net? How would I monitor a .txt log file in realtime with VB.net and return any new lines to my program? I will need the new lines of text as soon as they are added to the log file. I only need the new lines of text, not the entire file.

Answer: Write a console application program in VB .NET to read the .txt file. Either delete the previous lines once you have read them, or have a counter to read only the new lines. Run it (F5).\n\nUse a timer with loops to control the granularity of time (depends on how fast you want to read the .txt). In that way, the new lines in .txt will keep getting read and processed the way you want it.
This question from the Yahoo Q&A forum is categorized in the topic: Health