in reply to Re: 'seek' on a FileHandle.pm object
in thread 'seek' on a FileHandle.pm object
If 'seek' is called like so:
...the first argument refers to the filehandle, the second argument to the offset, and the third one of three positions in the file(beginning, current, end).seek( FH, 0, 0 );
I see my mistake was thinking of 'offset' as equivalent to line numbers, which it is not. It refers to byte positions. So, my new question is: Is 'byte positions' really as simple as it sounds(the positions of the byte in the file)? So if I knew the exact byte position that I wanted to seek to I could enter it as the offset argument and be taken right there?
Amel - f.k.a. - kel
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(bbfu) Re(3): 'seek' on a FileHandle.pm object
by bbfu (Curate) on Apr 17, 2001 at 23:11 UTC | |
by dsb (Chaplain) on Apr 17, 2001 at 23:16 UTC | |
by bbfu (Curate) on Apr 17, 2001 at 23:27 UTC |