10 REM PC-BASIC test 
20 REM INPUT from console
25 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
27 ON ERROR GOTO 2000
30 INPUT A$: PRINT#1, A$
40 INPUT A%: PRINT#1, A%
50 INPUT A!: PRINT#1, A!
55 INPUT A#: PRINT#1, A#
999 CLOSE: END
2000 PRINT#1, ERR, ERL
2020 RESUME NEXT

