GET#
The GET# command is used to transfer individual bytes of information from an
IEEE device such as the disk drive into computer memory. GET# is valid only
when used in a program and only when referencing a file that has been OPENed.
The format for GET# is:
GET#lfn,A$
Where: lfn = a file previously opened using secondary address 15
A$ = a string variable which will contain the data transferred.
GET# may also be used to transfer several bytes of information, which is useful
for retrieving strings which have been written to the disk in a format which is
unacceptable of the INPUT# command (strings longer than 80 characters).
For example: 10 AA$=""
20 FOR I=1 TO 254
30 GET#lfn,A$
40 AA$=AA$+A$
50 NEXT
is a program segment which would result in a string of length 254 being trans-
ferred from the disk (logical file number lfn) to the computer memory and stored
in the variable AA$.
RECORD#
The RECORD# command is used prior to a PRINT#, INPUT#, or GET# in
order to position the file pointer to the desired record (and byte) of a relative
file. For example, if record pointer is set beyond the last record and PRINT# is
used, the appropriate number of records are generated to expand the file to the
desired record.
RECORD# is available only to users equipped with BASIC 4.0. The format is:
RECORD#lfn,r,b
Where: lfn = a logical file number of a file previously opened with the
DOPEN command
r = the desired record number. r may be either a variable name or
value, however if r is a variable name, it must appear enclosed in
parenthesis. I<=r<=65535
37