can some one help me with how to efficiently read the last N Lines of a large file using python
I used seek function to find the file and read characters iterating backwards till you encounter newline char, store it in the result and repeat reading you encounter N newlines, I think there might be a more efficient solution
New contributor
rak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.