SEEK |
![]() ![]() ![]() |
The SEEK statement sets the current read / write position in a directory file record previously opened for sequential access.
Format
SEEK file.var {, offset{, relto }} {THEN statement(s)} {ELSE statement(s)}
where
At least one of the THEN and ELSE clauses must be present. The THEN clause is executed if the operation is successful. The ELSE clause is executed if the SEEK operation fails.
Example
SEEK SEQ.F 0, 2 ELSE ABORT "Seek error"
This statement positions to the end of the record ready to append new data.
See also: CLOSESEQ, NOBUF, OPENSEQ, READBLK, READCSV, READSEQ, WEOFSEQ, WRITEBLK, WRITECSV, WRITESEQ, WRITESEQF |