10 REM PC-BASIC test 
20 REM LINE INPUT syntax
30 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
40 ON ERROR GOTO 1000
50 OPEN "TEST.BAS" FOR INPUT AS 2
60 LINE INPUT#
65 LINE INPUT#2
70 LINE INPUT#2,
75 LINE INPUT#2, A$: PRINT#1, A$
80 LINE INPUT#1; A$
85 LINE INPUT#1, "!"; A$
160 LINE INPUT
161 LINE INPUT;
165 LINE INPUT "p"
170 LINE INPUT; "p"
180 LINE INPUT "p"; A$: PRINT#1, A$
182 LINE INPUT; "p"; A$: PRINT#1, A$
185 LINE INPUT "p", A$: PRINT#1, A$
187 LINE INPUT; "p", A$: PRINT#1, A$
190 LINE INPUT A$: PRINT#1, A$
999 END
1000 PRINT#1, ERR, ERL
1010 RESUME NEXT
