in reply to Re^3: read from a file and write into the same file
in thread read from a file and write into the same file

Right, as far as I know you can count on it being at the end (or at least, the end as of the time of the open) even before the first write on linux. But it isn't guaranteed in general by POSIX.
  • Comment on Re^4: read from a file and write into the same file