Download Print this page

Radio Shack TRS-80 model III Owner's Manual page 125

Mini-disk operation, trsdos disk operating system, disk basic programming language
Hide thumbs Also See for TRS-80 model III:

Advertisement

TRS-80
MODEL
III
DISK
SYSTEM
o
Sequential output
starting
at
the
first
record.
If
the
file is
not
found,
It
will
be
created.
e
(Extend) Sequential output
starting at
end
of
file.
If
the
file is
not
found.
It
will
be
created.
r
Random
input/output,
if
the
file is
not found,
it
will
be
cmatedf
If
mode
is
a constant,
it
must be
enclosed
in
quotes.
buffer
is
a
numeric
expression
specifying
which
buffer
is
to
be
used;
fffeis
a
string
expression containing
the
file
specification.
If
a constant
is
used,
it
must be
enclosed
in
quotes.
record-length
is
a numeric expression from
to
256
specifying the
logical
record
length.
is
the
same
as 256.
This option
may
only
be used
if
¥ariable-length records
were
requested
during
initialization
(How
Many
Files?).
If
record-length
is
omitted,
256
is
used, record-length
is
used
with
Random
access
only.
This statement
lets
you
create a
file,
write data
into
it,
update
it,
and
read
it.
For
details
on
file
access, see
Methods
of
Access
later in this
section.
If file
includes a drive
specification,
basic
will
use only
the specified drive.
If
no
drive
is
specified,
basic
will
search
for a
matching
file,
starting
with
the
master
drive (usually
Drive
0).
Examples
OPEN
"0"
*
1
t
"DATAFILE"
Opens
datafile
(creates
it
if
it
doesn't already
exist) for
sequential output.
Output
will
be done through
buffer
#1. Records
will
be
256
bytes long.
Since
the
"o" mode
is
specified,
output
will
start at
the
first
record
in
the
file.
If
"e"
is
used
instead
of
"o",
output
will
start at
the
end
of
the
file.
OPEN
"R",
2*
H
PAYROLL/A
:1"
,
G4
Opens/creates
payroll/a
for
random
input/output.
Access
will
be through
buffer
#2. Records
will
be 64
bytes long
(if
basic
was
initialized
for variable-
length records).
BUFFER
=
3:
FILE$
=
"DATA": RECLN
=
128
OPEN
"R",
BUFFER* FILE** RECLN
Opens/creates
data
for
random
input/output.
Access
will
be through
buffer
#3.
Records
will
be 128
bytes long
(if
basic
was
initialized
for variable-length
records).
124

Advertisement

loading