Tests for end-of-file condition.
v=EOF
(file_number)
EOF
returns true if the end of the file associated with the file_number specified has been reached; otherwise EOF
returns false.
file_number is the number assigned to the file in its OPEN statement.
Use EOF
to test for end of file while inputting to avoid Input Past End
errors.
OPEN "\CONFIG.SYS" FOR INPUT AS #1
DO UNTIL EOF(1)
LINE INPUT #1, fdata$
PRINT fdata$
LOOP
CLOSE #1