EOF
|
Syntax: |
EOF(<File Number>) <File Number> = <NUM-EXPRESSION> |
||
|
Meaning: |
Checks whether the file end of a sequential
or random file has been reached. EOF only has an effect if the file <File
Number> has been opened with OPEN
INPUT or OPEN RANDOM. EOF is 1 (true) if
the file end ahs been reached, otherwise it is 0 (false). |
||
|
Parameter: |
|
||
|
Sample: |
/* Read sequential file OPEN INPUT,1,"TESTFILE.DAT" ON ERROR
ERRORMES = "Open error" + STR$(OK) ENDPROG END WHILE NOT EOF(1) DO LINE INPUT 1,H$ ON ERROR ERRORMES = "Read error" + STR$(OK) ENDPROG END ENDDO |
||
|
See also: |
|