By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,632 Members | 1,499 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,632 IT Pros & Developers. It's quick & easy.

How To Continuosly Read Text File In Vb

P: 1
Hi...
I M Working On Project "web-based Wireless Home Automation"
My Hardware Part Is Completed ..n Now I Want To Access This Hardware Using Parallel Port...so I Choose Vb..bcoz C Program Doesnt Support On Xp.
In My Project Asp.net Is Generating One Text File Having Data 1 Or 0. N I Want That Vb Program Should Read The Content Of This File Contineously And Give Info Or Access To Parallel Port...should It Be Possible????
If Yes So Plz Help Me..as Early As Possible
Apr 8 '07 #1
Share this Question
Share on Google+
1 Reply


Expert 5K+
P: 8,434
Hi...
I M Working On Project "web-based Wireless Home Automation"
My Hardware Part Is Completed ..n Now I Want To Access This Hardware Using Parallel Port...so I Choose Vb..bcoz C Program Doesnt Support On Xp.
In My Project Asp.net Is Generating One Text File Having Data 1 Or 0. N I Want That Vb Program Should Read The Content Of This File Contineously And Give Info Or Access To Parallel Port...should It Be Possible????
If Yes So Plz Help Me..as Early As Possible
Yes, reading a file "continuously" should be very simple. Just open the file, read it, close it, open it, and read it again. And keep doing so.

Probably the simplest thing to do would be to set up a timer control to do this process as often as you want.

Important point, though - I'm almost certain that if you want to see new data added to the file, you have to close it and open it again.
Apr 9 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.