I know I could use an if
statement and a boolean variable, but I'm sure there has to be another way to make Ovid
's code to go straight to the last line, even when the file has a couple hundred lines or what have you in it already.
It'll print out the entire file, then start printing the last line as it is written. Ideally, this would:
A - Ignore everything except lines that are added after the program is run .. or
B - Print the last line of the file, then do its thing printing new lines.
I've tried all sorts of seeks() all over the code, to no avail. Any help would be greatly appreciated.