10 REM PC-BASIC test 
20 REM
30 PRINT 1
40 PRINT 2
50 PRINT 3
60 PRINT 4
70 PRINT 5
80 PRINT 6
90 PRINT 7
100 ON ERROR GOTO 1000
110 END
1000 OPEN "OUTPUT.TXT" FOR APPEND AS 1
1010 PRINT#1, ERR, ERL
1020 CLOSE
1030 RESUME NEXT

