Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
The BASIC program interfaces I've used typically give a similar example of a command to read all bytes in a file.
DO / UNTIL EOF (or equivalent WHILE/ WEND loop).
At some time I started to find 'EOF' did not always bring about the expected end of a file input loop. I forget if it produced an error, or maybe it simply froze program execution.
Anyway I stopped using 'EOF'. I find it works if I get a byte count of the file length as I open it, and then keep track continually of how many bytes I have read.
Or to read the entire file into memory, and then PEEK each byte in sequence.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.