4 TRON
5 OPEN "output" FOR OUTPUT AS 1
7 ON ERROR GOTO 1000
10 FOR I=1 TO 10
20 PRINT#1, I
25 GOTO 40
30 IF I=1 THEN NEXT
40 IF I=2 THEN NEXT I
50 IF I=3 THEN NEXT I
60 IF I=4 THEN NEXT I
70 NEXT
999 CLOSE:END
1000 PRINT#1, "error:", ERR, ERL: PRINT ERR, ERL: RESUME NEXT

