EOF: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
The EOF, or End of File, error condition may be specified at the end of a program statement and
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.
in the Exit statement, but it is not accepted by the ON error statement.
See also Error [[4270]] for reading files or error [[57]] for reading [[data]] statements


===Error Trap:===
===Error Trap:===

Latest revision as of 16:34, 7 April 2021

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.

See also Error 4270 for reading files or error 57 for reading data statements

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).