SETWRITEPOS

Synopsis
SETWRITEPOS charpos
Description

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

Example
OPENWRITE "dummy.fil
SETWRITE "dummy.fil
PRINT "Hello
SETWRITEPOS 0
TYPE "J
SETWRITE []
CLOSE "dummy.fil

OPENREAD "dummy.fil
SETREAD "dummy.fil
SHOW READLIST
[Jello]
SETREAD []
CLOSE "dummy.fil

SourceForge.net Logo