
CATalog
CATalog
The CATalog query returns the directory of the disk in block data format.
The directory consists of a S-character string for each file on the disk.
Each
entry is formatted as follows:
“NNNNNNNNNN
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD”
where N is the filename, T is the file type (a number), and D is the file
description.
Query Syntax:
:MMEMory:CATalog?
Returned Format:
[:MMEMory:CATalog] block size block data>
where:
block size
:: =
followed by an eight-digit number)
block data
:: = [<filename <file type <file description
Example:
10 DIM
20 DIM
30 OUTPUT
OFF"
40 OUTPUT
catalog query
50 ENTER XXX USING
in
ENTER XXX USING
in length
70
Length STEP 51
and print each file
8 0
ENTER XXX USING
9 0
1 0 0
NEXT I
110 ENTER XXX USING
in final line feed
120 END
HP
16518
Programming Reference
Subsystem
7-5