Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 150,085 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,809 people online right now. Registration is fast and FREE... Join Now!




Log file scan .... VB.net (PROBLEM)

 
Reply to this topicStart new topic

Log file scan .... VB.net (PROBLEM)

romez
18 Apr, 2008 - 02:55 AM
Post #1

New D.I.C Head
*

Joined: 11 Apr, 2008
Posts: 2

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
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 11:40PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month