Vector Basic Interpreter Basic 80 Reference Manual - page 68
LINE INPUTt
Disk
To read an entire line (up to
254
characters),
without
delimiters, from a sequential disk data
file to a string variable.
was
OPENed.
name to which the line will be
assigned.
LINE
INPUT.
reads
all
characters in the sequential
file up to a carriage
return.
It
then
skips
over the carriage return/line feed sequence, and
the next LINE INPUT' reads all characters up
to
the
next
carriage·
return.
(If
a
line
feed/carriage return sequence is encountered, it
is preserved.)
LINE INPUT. is especially useful
a data file has been broken into
BASIC-80 program saved in ASCII
read as data by another program.
if each line of
fields, or if a
mode
is
being
Example:
10 OPEN "O",1,"LIST"
20 LINE INPUT
It
CUSTOMER INFORMATION? ";C$
30 PRINT .1, C$
40 CLOSE 1
50 OPEN "I",1,"LIST"
60 LINE INPUT
t
1, C$
70 PRINT C$
80 CLOSE 1
RUN
CUSTOMER INFORMATION? LINDA JONES
234,4
ME.'-1PHIS
LINDA JONES
234,4
MEMPHIS
Ok