I need to read records that I created, written to a .txt file using a code and I d like to know how to use EOF in the code to get the programme to read till end of file, and to display them all as I click next. Code for that please.:?: I wrote "Do while Not EOF() and its giving me error "Argument not optional"
My computer doesn't have Help files at the moment, so its kinda hard.
Thank You.
Dawmah
0
Newbie Poster
Recommended Answers
Jump to PostThat's Because you have to tell EOF the file handle that you want it to check for EOF of.... for example:
open "c:\autoexec.bat" for input as #1 ' / * do this until eof returns true on handle 1 */ do until eof(1) ' /* Read Data …
All 2 Replies
Comatose
290
Taboo Programmer
Team Colleague
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.