4 TRON
5 OPEN "output" FOR OUTPUT AS 1
7 ON ERROR GOTO 1000
10 FOR I =1 TO 10
20 FOR J=1 TO 10
30 PRINT#1, I, J
40 NEXT
50 NEXT I
120 CLOSE:END
1000 PRINT#1, "error:", ERR, ERL: PRINT ERR, ERL: RESUME NEXT



