10 REM PC-BASIC test 
20 REM RESTORE syntax
30 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
40 ON ERROR GOTO 1000
50 DATA 1,2,3,4,5,6,7,8,9,10
60 READ I:PRINT#1, I
65 REM error
70 RESTORE STOP
75 REM has data pointer been reset?
80 READ I:PRINT#1, I
90 RESTORE 1
100 READ I:PRINT#1, I
110 RESTORE 50 YEAH
120 READ I:PRINT#1, I
130 RESTORE 60
140 READ I:PRINT#1, I
150 RESTORE 10
160 READ I:PRINT#1, I
999 END
1000 PRINT#1, "Error:", ERR, ERL
1010 RESUME NEXT
