Download Print this page

Radio Shack TRS-80 Owner's Manual page 142

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

Advertisement

HI
"
"
TRS-80
MODEL
III
DISK
SYSTEM
wmmmmammmmmmmmummmmmmmmmmmmmam
t
Ispswi^
imm
§mmm
at
ike
llm
mtm.
i
c
,
trsa
file
is
net
found,
limn
be
amsms,
t
fEifaiisi)
Sequbjtffgi
output
starting
m mi
of
file.
If
M
file is riot
icui'sii
If
wis
m
created.
a
Randsm
Inpuf/safput,
It
M
tile is
no!
foynti,
if
wii!
be
created,
if
meae
is
s constant
If
miss!
m
enclosed
in
quotes,
fmffer
is
a
numeric
expression
specifying
which
Suffer
is
to
m
used.
ffls is
a string
sspressra
santsmmg
the
file
ipeeifiMilon.
I!
s c-cnstsm
is
ami,
i!
must
he enciossp
in
poies,
resarsj-lsngth
te
a
numeric
expression from
to
268
specifying the
logical
record
isnoth.
Is
the
same
as 256. This
option
msy
only
as used
if
;!
'.c...;
v.-.;?;
:•;-'.
.
r--t:
:.-.:',';--:
.
::--:
^^y.
..•*<.••
.r3->sit£lh
Is
ussti
with
Random
access
fffl%;
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"
»
I
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"
t
2,
"PAYROLL/A:
1"
,
64
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* F!LE$» 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

This manual is also suitable for:

Model iii