264
The
VIC
20
User
Guide
Notice that in the above examples the letter
"N"
is
used instead
of
the word
NEW. N
is
an acceptable abbreviation for the NEW (disk) command.
Renaming
Flies
If
you have a file with a name that you feel
is
inappropriate, you may
change its name using the RENAME instruction. To rename a file, use the
following format:
OPEN
1,8,15
PRINT#l,
"RENAME:
NEW
FILENAME
=
OLD
FILENAME"
You may use the abbreviation R in place of the word RENAME. Thus,
if you wanted to change a file named DOG.I to CAT.I, you would enter
OPEN
1,9,15
PRINTI!.
"R:
CAT.1
'"
DOG.
1 "
Erasing
Flies
To
erase a file from your diskette, use the SCRATCH command. Its
format
is
shown here.
OPEN
1,9.15
PRINTIL
"SCRATCH:
FILENAME"
The abbreviation S may be used in place of the instruction SCRATCH.
Therefore, you can also use
PRINT#l,
"S:
FILENAME"
to erase programs or data.
The
VALIDATE
Command
The VALIDATE command may be used
to
"clean
up"
a diskette. After
a time there may be some files on your diskette that were not properly
closed,
or
various files that were used as temporary storage and are not even
part
of
another file. To perform this housekeeping, use the V ALIDA TE
command. It deletes any unclosed files and frees any blocks that were
previously allocated but not associated with any specific file.