I\'m writing a log file viewer for a web application and for that I want to paginate through the lines of the log file. The items in the file are line based with the newest
There are some existing implementations of tail on pypi which you can install using pip:
Depending on your situation, there may be advantages to using one of these existing tools.