Owner`s manual
19
i
File call (data read-out)
DISK BASIC
CASSETIE
BASE BASIC
File open command
ROPEN
#n,
"fjJename" ROPEN "fjJename"
Data read-out command
INPUT
#n,
variable INPUTfT variable
File close command CLOSE
#n
CLOSE
File end detection
IF
EOF
(#n)
THEN
--
As you can see, comparison of the various commands shows an almost I-to-l
relationship. Note, however, that DISK BASIC commands always include elements
#n.
These numbers are called logical numbers, and must always be designated for
DISK BASIC file access.
For
CASS~TIE
BASE BASIC, file access for data write-in or read-out
is
limited to
one file. For DISK BASIC, however, contains several files in order to make the best
use of its random access feature at will, so that it
is
possible to simultaneously control
several
(maximum 10) files. And, if a file
is
opened, optionally selected logical
numbers can be defined and thereafter used for designation of the pertinent file,
thereby eliminating the necessity
of
using the file name each time.
Example:
As a simple example, let's consider the registration of a person's name and address
in
the sequential access file. Thus, all available addresses can be stored one after the
other in the file.
Take, for example, the following file:
filename =
If
ADDRESS LIST"
Name
I
Address
I
Name
I
Address
I
Name
I
Address
I