BASIC PROGRAMMING
SECTION
lJ. 13
4. 13. 1
4.13.2
FILE HANDLING
1
HUNTER's Basic interpreter provides the user with the necessary
commands and statements to communicate with the File Manager as
follows:
CLOSE
EOF
INPUT/I
KILL
LOC(n)
MAXFILES
NAME
OPEN
PRINT/I
WRIIB/1
HUNTER's File Manager supports the use of sequential access
files. Files are stored in HUNTER's RAM memory, but HUNTER's
Basic interpreter will treat them as if they were disk files for
reading and writing.
File NUDDers
When files are OPENed for input or output they are assigned a
'file number' which is specified by the 'AS' parameter. The
'file number' cannot be greater than the value specified in
MAXFILES, If no MAXFILES have been specif:!.ed a default value of
one is taken. A file is always referred to by its 'file
number'.
4, 13,3,
1 File Handling Commands
A brief description of the file handling commands and statements
follow, further details may be found in the relevant section of
Part
5, Basic Functions.
4,13.3,2
CLOSE#
When files have been OPENed for reading or writing and no
further access is required CLOSE will write the end of file
marker (EOF) to the file.
4,13,3,3
EOF
VER.V09F
When reading data from a file a check must always be made a~er
every INPUT/I statement for end of file, an attempt to read past
the end of file will produce an error.
PAGE
lJ - 44