Download Print this page

Radio Shack TRS-80 Owner's Manual page 149

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

Advertisement

line
input (orLiNEiNPUT
the
space
Is
optional)
reads everything
from
the
first
character
up
to:
1
an
CENTER
)
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
(EWTEB)
20
OPEN"
I
"
.1
>
"PROG"
(HTER)
then the statement
LINEINPUTst
jA$
could
be used
repetitively
to
read
each
program
line,
one
line at
a time.
PRINT#
Sequential
Write
to
Disk
Fie
vti':H'i^!msxa-l<M:m
m^mi
\
ems
s?5
.'-.
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

This manual is also suitable for:

Model iii