Monitor Application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to find a solution to the following

I need to write an application (something like a monitor) which will read a big text file and display its contents on a screen

The difficult thing for me is that the file is always used by another application which writes events (string lines) to it. So what my application needs to do is, whenever a new line is added in the file, it must be displayed on the screen

I would appreciate some help

Thanks in advanc

Yiannis
 
You can try to use System.IO.FileSystemWatcher to watch for changes in the
file. However, it won't work on win 9x machines. Another way is to setup a
timer, and check the length of the file every second. You can check which
way works better for you.

Thanks
Lifeng
MS VB
 
Back
Top