|
seek
+- = -+ +-CHAR-+
>>-seek(-+-----+-offset-+-------+-+------+-)-------------------><
+- < -+ +-READ--+ +-LINE-+
+- + -+ +-WRITE-+
+- - -+
Sets the read or write position to a given number ( [offset] ) within a persistent stream. If the stream is open for both reading and writing and you do not specify READ or WRITE, both the read and write positions are set. Note See for a discussion of read and write positions in a persistent stream. To use this method, you must first open the stream object (with the OPEN method described previously or implicitly with an input or output operation). One of the following characters can precede the [offset] number:
The [seek] method returns the new position in the stream if the read or write position is successfully located, or an appropriate error message. The following is a description of the options for [seek]:
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)
|
||||||||||||||||