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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to open a file?

Status
Not open for further replies.

Zadig

Programmer
Apr 23, 2002
1
CA
I am trying to download a file and when I do the processing stops and a blue Qbasic screen appears. In the center box it says "input past end of file". How do I find out where in the file the error is , and what do I press to get the blue screen to give me that information?
 
It looks like you have opened up a text file and trying to read past the end of file. You must check for the EOF


for example
ffile = freefile
Open "Test.txt" for input as #ffile
do while not eof(ffile)
input x$
'do your stuff
wend
close #ffile

David Paulson


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top