EOF

From BR Wiki
Revision as of 22:26, 23 January 2013 by Laura (talk | contribs)
Jump to navigation Jump to search

The EOF, or End of File, error condition may be specified at the end of a program statement and in the Exit statement, but it is not accepted by the ON error statement.

Error Trap:

EOF traps three error situations: when there are no more records in the file during input (for a READ file, INPUT, or LINPUT statement), when there is not enough file space during file output (for a PRINT or WRITE statement) or when there is not enough data in DATA statements (for a READ data statement).