in reply to File::Binary:howto goto a position in file
seek() takes two parameters - the offset (or POS) and how that offset should be interpreted (or WHENCE). The three WHENCE's are SEEK_SET (absolute position, or relative to file beginning), SEEK_CUR (relative to where I am right now), and SEEK_END (relative to the end of the file). seek might also be useful.use Fcntl 'SEEK_SET'; $fb->seek( 10, SEEK_SET );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File::Binary:howto goto a position in file
by jeanluca (Deacon) on Mar 12, 2006 at 13:41 UTC | |
by dragonchild (Archbishop) on Mar 12, 2006 at 13:50 UTC | |
by jeanluca (Deacon) on Mar 12, 2006 at 14:01 UTC |