EasyManua.ls Logo

Husky Hunter - Page 162

Husky Hunter
499 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BASIC PROGRAMMING
SECTION 4.13
4. 13.3,4 INPUT#
This command is used for reading data from a file.
4,13.3.5 KILL
Used for deleting files from within a Basic program. The file
must first be CLOSEd if it has previously been OPENed for
reading or writing.
4.13.3.6 LOC(n)
This will return the number of records that have been read or
written to a file. The parameter (n) refers to the 'file number'
associated with the file.
4.13,3,7 MAXFILES
Sets the maximum number of files that may be opened simul-
taneously; if it is not specified a default value of one is
taken. MAXFILES will perform a CLEAR operation when it is
executed, destroying all symbol table entries. Therefore it
rrust be defined at an early point in the program.
4.13,3,7 NAME
This will re-name a file from within a Basic program.
4,13,3,8 OPEN
Before a file can be read or written to it must first be OPENed,
The OPEN command has as one of its parameters 'FOR' which has to
be specified with one of three options which are:
OUTPUT= Opens and clears file ready for output.
APPEND= Opens a file for output. Records written are added to
the end of the file.
INPUT = Opens a file for reading.
VER.V09F
PAGE 4 - 45