Filnum - Epson TF-20 Reference Manual

Hx-20 disk basic
Hide thumbs Also See for TF-20:
Table of Contents

Advertisement

FILES
To display the filenames in the specified device.
FILES [<file descriptor>]
FILES "B: * . BAS"
When the device specified in <file descriptor> is not the
TF-20, (i.e., "CAS0:", "CAS1:" or "PAC0:"), the FILES
statement displays the names of the files in the specified
device in the format described in the BASIC Reference
Manual.
When the device specified by <file descriptor> is the disk
unit ("A:", "B:", "C:" or "D:"), only those files which
conform to the <filename> and <file type> specified in the
<file descriptor> will be displayed. If only the device is
specified, all of the files on that disk will be displayed in the
following format:
filename, file type
At this time, in addition to the characters that can normally be
used to specify the range of the file, question mark [?] and
asterisk [*] can also be used within the <file descriptor>.
Any character will be accepted in the position which is
occupied by the question mark, and any <filename> or
<file type> will be accepted as conforming to a <filename>
or <file type> which begins with an asterisk.
4-10

FILNUM

To specify the number of file control blocks (FCB) that can be
used in a disk file.
FILNUM <No. of FCB>
FILNUM 5
FILNUM specifies the number of files that can be opened
simultaneously during the execution of a BASIC program.
When a disk file is opened, for each file, a 143-byte file
control block (FCB) is necessary. FILNUM specifies in
advance the size of the area to be reserved for the FCBs.
<No. of FCB> can be a value from 1 to 15. When FILNUM is
executed, all files open at that time are closed. Also, data
specified by the DEFINT and ON ERROR statements
become invalid.
(See OPEN and CLOSE.)
4-11

Advertisement

Table of Contents
loading

Table of Contents