Download Print this page

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

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

Advertisement

DISK
BASIC
line input
(or
lineinput
the
space
is
optional) reads
everything
from
the
first
character
up
to:
1
an
(ENTER)
character
which
is
not
preceded
by
©
2.
the
end
of
file
3.
the
255th
data character
(this
255
character
is
included
in
the
string)
Other
characters
encountered
quotes,
commas,
leading blanks,
©
(
ENTER
)
pairs
are
included
in
the
string.
For example,
if
the data
looks
like:
10
CLEAR 500
(ENTER)
20
OPEN"!"
fl
»"PR0G"
(ENTER)
then
the
statement
LIIMEINPUT#1
»A$
could be used
repetitively to
read
each
program
line,
one
line
at
a time.
PRINT#
Sequential
Write
to
Disk
File
;
'/ii^:^^;ii|li^oKlb
be evaluated and
written to
disk.
This statement
writes data sequentially
to
the specified
file.
When
you
first
open
a
file
for sequential output, a pointer
is
set to
the
beginning of
the
file,
therefore
your
first
print#
places data
at
the
beginning of
the
file.
At
the
end
of
each
print#
operation, the pointer
advances,
so the values are written
in
sequence.
131

Advertisement

loading