Vector Basic Interpreter Basic 80 Reference Manual - page 143
There are two types of disk data files ~~at may
be
created
and accessed
by
a BASIC-SO program:
sequential files
and
random access files.
B.3~1
Sequential Files
Sequential files are easier to create than random files
but
are
limited
in
flexibility
and
speed
when
it comes to
accessing
the
data.
The
data
that
is
written
to
a
sequential
file
is
stored,
one
item
after
another
(sequentially), in the order it is sent and is read back
in
the same way.
The statements and functions that are used
with
sequential
files are:
PRINT#
INPUT#
PRINT# OSING
LINE INPUT#
The
following
program
steps
are
required
to
create
a
sequential file and access the data in the file:
2.
Write data to the file
using the PRINT# statement.
(WRITE. maybe used instead.)
3.
To access the data in the
file, you must CLOSE the file
and reOPEN it in "I" mode.
CLOSEt'
1
OPEN "I",,1,"DATA"
4.
Ose the INPUTi statement to
read data from the sequential
file into the program.
Program B-1 is a short program
that
creates
a
sequential
file,
"DATA",
from information you input at the terminal.