EOF(n) Returns True on Random File Until GET Is Executed (63002)
The information in this article applies to:
- Microsoft BASIC Compiler
- Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0
This article was previously published under Q63002 SUMMARY
This article provides detailed information on the behavior of the EOF
function on a random-access file in QuickBASIC and BASIC programs for
the Apple Macintosh.
When the RANDOM file is first opened, the EOF function always returns
-1 (true). EOF returns -1 until a GET statement is executed. Once the
first GET statement is executed, EOF returns 0 (false) if the GET
statement finds a record. EOF returns -1 (true) if there are no more
records left in the file or if the last GET statement was unable to
read an entire record.
This information applies to Microsoft BASIC Interpreter versions 2.00,
2.10, and 3.00, to Microsoft BASIC Compiler version 1.00, and to
Microsoft QuickBASIC version 1.00 for the Apple Macintosh.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB63002 |
---|
|