Just like the command tail -f <a growing file>
?
whenever I read a growing file, it always encounter the EOF error, and then quit.
Just like the command tail -f <a growing file>
?
whenever I read a growing file, it always encounter the EOF error, and then quit.
I haven't experimented with it much, but there is a github repository that aims to emulate tail
functionality in Go: https://github.com/ActiveState/tail
Find the answer as if you're programming in C on Linux, then use the same/analogous options to the equivalent 'open' system call.