Reading a text file in real time...

TJC

New member
Joined
Feb 23, 2004
Messages
3
Hi guys,

Im using VB and trying to load a text file so that I can read whenever its appended. The file will be getting a new line appended a couple times a second or more so I need to find some way to loop it so it is always checking for new data. Ive been banging my head on the desk over this for a week or so now and can not figure it out. Ive gone all through the MSDN site and as many forums as Ive found relating and see nothing to help me. Anyone here able to help?

Thanks in advance for any help I can get.
 
Hi All,

May I suggest another approach to your solution?
1)You could use Message Queueing approach. One app sends
message to a public queue. The other app receives the message
2) Use SQL server to store data and other app can read from it.

Best,
duketin
 
any hint as to what command I would use for that?

I literally know nothing about .net but what Ive shown myself...
 
Hi TJC,

1) For Message Queueing approach, you need to have Message Queue Component installed on your system. On Control Panel, double-click Add/Remove programs. On the left-pane, click Add/Remove windows components, browse toward middle of the list, and check Message Queue. Itll ask for OS CD.

In Visual Studio, search for:
Walkthrough: Creating a Queue and Working with Messages
----------------------------------------------------------------------------
Follow their example. Ive successfully created one following their sample.

2) For the SQL server approach, you need to have SQL 2000 Server installed on your system. It costs some $. You need to have knowledge about creating database, datatable, select & insert commands, etc... This approach is better in long run and give you flexibilty, performance, etc...

Best2U_ALL,
duketin
 
Back
Top