Sometimes, you need to reposition within your stream. To do this, you
method. position is the new position in the stream, counted
byte-wise and starting at
0. The optional argument offset
specifies from where the method should seek. If it is
counting is started at the beginning of the stream.
indicates to seek from the current stream position and
means seeking from the end of the stream. Note that position is
a signed integer value and you can also seek backwards by inserting a
You can use the
pos() method to determine your current position
within the stream, which is returned by the method.