what are the ways to correctly read the constantly appending file. I make a counter for the line number on which I finished reading the previous time, but every time it take