romez 0 Newbie Poster

I have a log file (eg logfile.txt) which is continously updated (with the values on and off from various equipments) such as:


CCC:on
DDD:on
XXX:off

CCC:off
EEE:on
FFF:on

DDD:off
EEE:off
XXX:on

Now i have buttons on a vb.net form corresponding to each of the equipments such as CCC, DDD, EEE, XXX and FFF. I have to have a program which continuosly reads the updated value in the log file and change the color of the button to green (on) and blue (off). The log file is updated every 1 second so new values for all the equipments have to be scanned (the values are appended in line wise as shown above). Can anyone please help to guide as to how can i read and scan the file for the updated values only, every SECOND so that i can have the corresponding buttons turned on green and red depending on the values read.

Thanks .... PLEASE HELP

Romez