EOF

From BR Wiki
Revision as of 22:25, 23 January 2013 by Laura (talk | contribs) (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 ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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