During for line in f:
, my code save the lines who contain a specific data. Unfortunately, I have to read the entire file to be sure than it is the most resent data.
In a second time, I have to check the entire file (between 5000-8000 lines) until I got the correct line several time (for each data).
So, my question is, it is possible to open a file and go to a specific line, read it and do it again. I saw different answer about it, but I can't save all the file in a str
because I don't have so much RAM on my device ... That's why I want to search directly in the file.