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.

That'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 From File */
     line input #1, tempvar
loop

Please read this section of the Forum Rules. I suppose you should probably read all the sections, actually. ;)

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.