Page 279 - Learn to Program - Basic-256
P. 279
Chapter 18: Files – Storing Information For Later. Page 263
open expression
open (expression)
open filenumber, expression
open (filenumber, expression)
Open the file specified by the expression for reading and writing to
the specified file number. If the file does not exist it will be
created so that information may be added (see write and
writeline). Be sure to execute the close statement when the
program is finished with the file.
BASIC-256 may have a total of eight (8) files open 0 to 7. If no file
number is specified then the file will be opened as file number
zero (0).
eof
eof()
eof(filenumber)
The eof function returns a value of true if we are at the end of the
file for reading or false if there is still more data to be read.
If filenumber is not specified then file number zero (0) will be
used.
© 2019 James M. Reneau (CC BY-NC-SA 3.0 US)

