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 2
30 PRINT#1, I,J
60 NEXT I
70 NEXT J
999 CLOSE:END
1000 PRINT#1, "error:", ERR, ERL: PRINT ERR, ERL: RESUME NEXT

