in reply to What specifically is the "file position"?

The file pointer rests between bytes. The file position returned by tell & friends is the number of bytes behind the pointer. So at the beginning of the file, it's 0, and at the end of the file, it's the file's size. (Think fence posts)

blokhead

  • Comment on Re: What specifically is the "file position"?