Sets the stream pointer to the specified position in the string |
Declaration: |
function seek(number offset, number whence) |
Description: |
This function sets the stream pointer to the specified position in the stream. The whence parameter specifies where the offset is relative to. It can be one of: Sys.SEEK_SET (relative to the start of the string), Sys.SEEK_CUR (relative to the current stream position), or Sys.SEEK_END (relative to the end of the stream). seek() does not extend the string if the resulting stream position would be greater than the length of the string. |
Parameters: |
Parameter #1: number offset - The amount to offset the pointer by |
Parameter #2: number whence - Where to offset the pointer relative to |
Returns: |
True on success or false on error |