Download Print this page

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

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

Advertisement

DISK BASIC
CLOSE
Close Access
to
the
File
nmexp
has a value from
1
to 15,
and
refers to
the
f
He's buffer
number
lle^
This
command
terminates access
to
a
file
through
the specified buffer(s).
If
nmexp
has not
been
assigned
in
a
previous
open
statement, then
close
nmexp
has
no
effect.
Examples
CLOSE
1
#2 t8
Terminates
the
file
assignments
to
buffers
1
,
2 and
8.
These
buffers
can
now
be
assigned
to
other
files
with
open
statements.
CLOSE FIRSTX+COUNTX
Terminates
the
file
assignment
to the
buffer
specified
by
the
sum
(first%
+
COUNT%).
Do
not
remove
a
diskette
which
contains
a
file
opened
for
writing
(mode
=
O,
E,
or
R). First close the
file.
This
is
because
the
last
256
bytes of data
may
not
have been
written
to
disk
yet.
Closing
the
file
will
write the data,
if
it
hasn't
already
been
written.
Any
modification
to
the resident
program
(new,
editing,
load, merge,
etc.)
will
cause
open
files
to
be
closed.
125

Advertisement

loading