+- = -+ +-CHAR-+ >>-seek(-+-----+-offset-+-------+-+------+-)------------------->< +- < -+ +-READ--+ +-LINE-+ +- + -+ +-WRITE-+ +- - -+
Note
1
means the beginning of the stream.
Note
Example 5.126. Stream object - SEEK method
stream_name~seek("=2 read") stream_name~seek("+15 read") stream_name~seek("-7 write line") fromend = 125 stream_name~seek("<"fromend read)