Suppose I open()
a file on a *nix machine and I hit eof
. But when I open()
ed it, it was still being written.
Is there a way to detect if the file has grown since open()
-time? Or do I need to close()
and re-open()
to check?
Is there a way to read past the old eof
without close()
ing and reopen()
ing?