back to Command Reference
[All Models]
Reads data from a sequential file.
INPUT# file number , variable name [ , variable name ]*
└────┬────┘
Numeric expression
INPUT #1, A
file number: Numeric expression truncated to an integer in the range of 1 <= filename < 2.
FOR INPUT), and for
communication circuit (COM0:) input/output files.ON ERROR statement begins from the 257th character.10 OPEN "CAS0:TEST" FOR INPUT AS #1
20 INPUT #1,A$
30 PRINT A$;
40 IF EOF(1)=0 THEN 20
50 CLOSE: END
Reads and displays data in a sequential file on cassette tape until no more data remain.