You can use file-position
.
(file-position my_stream)
This returns the current position in the file.
(file-position my_stream n)
This sets it to the nth position.
However there are sometimes problems with using this in Unix. Make sure you do not go beyond EOF.