SET # POINTER
SET #Channel_Number : POINTER BEGIN
moves the file pointer to the beginning.
Note that it is not allowed to overwrite the existing records.
SET #Channel_number : POINTER END
moves the file pointer to the end.
Use this to append records to the existing records.
Even if the file is empty, no exception shall be raised.
10 OPEN #1:NAME "A:ABC.TXT" 20 SET #1: POINTER END 30 PRINT #1: DATE$,TIME$ 40 CLOSE #1 50 END
SET #Channel_Number : POINTER SAME
moves the file pointer back to the beginning of the line read just before.
SET #Channe_Number : IF MISSING THEN EXIT DO
executes EXIT DO if the file pointer exceeds the end.
Just after a file is opened with ACCESS OUTPUT, the file pointer points the end.