I would like to know if it s possible to know how many lines contains my file text without using a command as :
with open('test.txt') as f:
text = f.readlines()
size = len(text)
My file is very huge so it s difficult to use this kind of approach...