473,407 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

How To Continuosly Read Text File In Vb

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
1 1725
Killer42
8,435 Expert 8TB
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

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

Similar topics

3
by: John Flynn | last post by:
hi, having problems reading from and writing back to the same file. basically, i want to read lines of text from a file and reverse them and write them back to the same file.. it has to...
1
by: Magix | last post by:
Hi, I have these string data: str_data1, str_data2, str_data3, which capture some value after a routine process A. Then I would like to write (append) these 3 string values into a text file each...
8
by: james | last post by:
I am trying to use Filestream to read a file ( .DAT) that contains values in HEX that I want to convert to text. I know the different offset addresses for each portion of the data I am trying to...
35
by: RyanS09 | last post by:
Hello- I am trying to write a snippet which will open a text file with an integer on each line. I would like to read the last integer in the file. I am currently using: file = fopen("f.txt",...
3
by: nicolasg | last post by:
Hi, I'm trying to open a file (any file) in binary mode and save it inside a new text file. After that I want to read the source from the text file and save it back to the disk with its...
3
by: =?Utf-8?B?ZGF2aWQ=?= | last post by:
I try to follow Steve's paper to build a database, and store a small text file into SQL Server database and retrieve it later. Only difference between my table and Steve's table is that I use NTEXT...
3
by: Ray | last post by:
Hello World, I made a Windowsform that reads data from a CSV file. It works fine, but when I have read the data of a record I have to re-Debug the form to read another record. So when I put a...
6
by: Thomas Kowalski | last post by:
Hi, currently I am reading a huge (about 10-100 MB) text-file line by line using fstreams and getline. I wonder whether there is a faster way to read a file line by line (with std::string line)....
1
by: inlovewithmusic | last post by:
Hello, I am trying to write a program that will fetch the amount of memory used by a process on a pc and write it to a text file. I have done this with the help of the System.Diagnostics...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.