I am reading data from a file 'aisha.txt'. The data is read line by line and the file is continuously updating and now I want to access the most recent line or end of file. How can I do that?
The code used for writing to the file is:
import time
a= open('c:/test/aisha.txt','w')
while(1):
a.write(str(i))
a.write("\n")
i+=1
a.close