EOF: Difference between revisions
Jump to navigation
Jump to search
(Created page with "The EOF 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 ...") |
No edit summary |
||
Line 1: | Line 1: | ||
The EOF 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. | ||
Revision as of 22:26, 23 January 2013
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).