Frmat - Epson TF-20 Reference Manual

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

Advertisement

FRMAT

To format the disk
FRMAT [<drive name>]
FRMAT "A:"
The FRMAT statement formats the disk in the specified disk
drive
<drive name> is a string with a value of "A " through "D "
If omitted, drive "B " is assumed The computer will print
the statement "Are you sure?" to ask for confirmation Input
"Y" from the keyboard if you wish to execute the statement
and "N" if you wish to cancel
When using a non-EPSON disk for the first time, formatting
is necessary before use It is also necessary when you wish
to reuse a disk on which data has been destroyed and which
can no longer be read
At the same time that the disk is formatted, the directories
are also initialized so that it can be used immediately as a
non-system disk Also, it must be kept in mind that the
FRMAT statement destroys all the data currently on the disk
4-12
To read one record from a random disk file into the random
buffer
GET [#] <file No.> [,<record No.>]
GET #1, 3
<file number> is the number under which the file was
opened by the OPEN statement
specified, that record will be read If it is omitted the record
immediately following the record used in the most recent
GET or PUT statement will be read <record No > must be in
the range of 1 to 32767 If it is not, a "Bad record number".
"0V" or "FC" error will occur Also, if a <record No > which
exceeds the size of the current file, or is in a block whose
area has not been reserved, is specified a dummy record
(data 00H) will be read by the GET statement The file
specified in the GET statement must have been opened as a
random file
(See FIELD, OPEN, PUT)
4-13
If <record No > is

Advertisement

Table of Contents
loading

Table of Contents