Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem Reading Files in QuickBasic

Status
Not open for further replies.

corey6486

Programmer
Oct 2, 2010
2
US
ok ive created a database to store all my customers and ive gotten my program to write the data to files successfully, but when i try to get the program to read them back to me, it only displays the first line of the file. i would like it to display the entire file. Any help would be appreciated.

Here is the code im using to get the program to read it back to me:

OPEN "file.ext" FOR INPUT AS #1
INPUT #1, info$
PRINT info$
 
Nevermind with almost 2 more hours of messing with the code, i finally got it to work. I had to change the code to this:

OPEN "file.ext" FOR INPUT AS #1
DO UNTIL EOF(1)
INPUT #1, info$
PRINT info$
LOOP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top