setReaderPos

HC Communication File Access setReaderPos
noDribble setWriterPos

setReaderPos charpos


command. Sets the file pointer of the read stream file so that the next readList, etc., will begin reading at the "charpos"th character in the file, counting from 0. (That is, SETREADERPOS 0 will start reading from the beginning of the file.) Meaningless if the read stream is the terminal.

Example:

openWrite "temp.txt
setWriter "temp.txt
pr [This is a temp file]
setWriter []
close "temp.txt

openRead "temp.txt
setReader "temp.txt
pr readList		;This is a temp file
setReaderPos 6
pr readList		;s a temp file
ReaderPos		;21  ;-)
close "temp.txt
setReader []

See also:

References:

noDribble setWriterPos