10 REM PC-BASIC test 
20 REM CLOSE test
30 ON ERROR GOTO 1000
40 OPEN "ONE0" AS #1
50 OPEN "TWO0" AS #2
60 CLOSE 1,2,3
70 OPEN "ONE1" AS #1
80 OPEN "TWO1" AS #2
90 CLOSE #1,2
100 OPEN "ONE2" AS #1
110 OPEN "TWO2" AS #2
120 CLOSE 1,
130 OPEN "ONE3" AS #1
140 OPEN "TWO3" AS #2
150 CLOSE
160 OPEN "ONE4" AS #1
170 CLOSE #1
180 OPEN "ONE5" AS #1
190 CLOSE ,1
200 OPEN "ONE6" AS #1
999 END
1000 OPEN "ERRORS.TXT" FOR APPEND AS 3
1010 WRITE#3, ERR, ERL
1020 CLOSE 3
1030 RESUME NEXT
