SETREADPOS

Synopsis
SETREADPOS charpos
Description

Sets the file pointer of the read stream file so that the next READLIST, etc., begins reading at the charpos-th character in the file, counting from 0. (That is, SETREADPOS 0 starts reading from the beginning of the file.) This is meaningless if the read stream is [].

Example
OPENWRITE "dummy.fil
SETWRITE "dummy.fil
PRINT "Hello
PRINT [Good Bye]
SETWRITE []
CLOSE "dummy.fil

OPENREAD "dummy.fil
SETREAD "dummy.fil
SHOW READLIST
[Hello]
SETREADPOS 0
SHOW READLIST
[Hello]
SETREAD []
CLOSE "dummy.fil

SourceForge.net Logo