The stupid question is the question not asked | |
PerlMonks |
What specifically is the "file position"?by Anonymous Monk |
on Jul 23, 2004 at 23:51 UTC ( [id://377037]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
When using sysseek, it supposedly returns the new file position. But is this the number of bytes _before_ the byte next in line to be read/written to, or is it including the next byte?
For example, I am seeking to the end of the file. To take the number of bytes already in the file (counting from 1!), would I simple take the return value, or would I have to add 1 to it? Thanks!
Back to
Seekers of Perl Wisdom
|
|