![Texas Instruments PHP1240 Manual Download Page 39](http://html.mh-extra.com/html/texas-instruments/php1240/php1240_manual_1097136039.webp)
The following are examples of the RESTORE statement.
RESTORE
#6
Resets the file pointer to the first record on the
file that was opened as
#6
so that the next
INPUT or PRINT statement referring to the file
will access the first record.
RESTORE #23,REC 1 2
Resets the file pOinter to the thirteenth record on
the file (remember that the first record is
number zero) so that the next INPUT or PRINT
statement referring to the file will access the first
record.
With RELATIVE files, RESTORE is generally used only to position the internal counter
at the end of the file since the record that you want to read or write can be specified in
the INPUT or PRINT statement.
DELETE - The DELETE statement is used to delete files. It has the following general
form:
DELETE "device.file-neme"
The
device
refers to the drive containing the diskette on which a particular file is stored.
If a file is on a diskette in disk drive one, the device is DSK l . For drive two, the device is
DSK2. For drive three. the device is DSK3. ThejUe-name may be any valid file name.
Note:
Files can only be deleted if they are not protected.
CALL FILES - The FILES subprogram is used to change the number of files (a
maximum of nine) that can be open at the same time. (The default number of allowable
open files in TI BASIC is three.) The amount of memory (RAM) available is reduced by
534 bytes. plus 5 1 8 more bytes for each allowable opened file.
The CALL FILES command has the following general form:
CALL FILES(number)
NEW
The
number
must be a single digit from 1 through 9 which specifies the number of files
that can be open at the same time. The command NEW
must
be made immediately
following the CALL FILES command. If CALL FILES is not executed. the default
number of files that can be open is 3.
36
CAUTION
CALL FILES only can be used as a command in TI
BASIC. It must not be used as a statement in a TI
BASIC program. Using CALL FILES in a program or
not following it with NEW can cause unpredictable
results. including loss of a program and/or loss of
data on a diskette.
Summary of Contents for PHP1240
Page 1: ......