EasyManua.ls Logo

Sinclair ZX INTERFACE 1

Sinclair ZX INTERFACE 1
64 pages
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...
Reading the file catalogue
As you establish files in a cartridge they are automatically catalogued. So,
when you want to find out what files a cartridge contains, you need only
insert the cartridge into a Microdrive and enter the CATalogue statement.
For example, enter:
CAT 1
The television screen will display:
-
the cartridge name,
- the file names,
- the amount of memory left in the cartridge, (in kilobytes).
You can also send the output of CAT to a stream by entering:
CAT # number;number
I \
This enables you to rend the catalogue to a printer, or to a file, so that a
program can use it.
Protecting a file
If you do not want a file name to appear on the catalogue, you can
protect it by giving it a name beginning with the character whose CODE
is 0. Enter this:
10 OPEN #4,“m”;l;CHR$0+“Results”
20 FOR n=l TO 15
30 PRINT #4;n,n)cn
40 NEXT n
50 CLOSE +4
Now enter:
CAT 1
The file name will not appear. So, whenever you create a protected file.
remember to make a note of its name somewhere, in case you forget it
later!
27