Say I have this simple python script:
file = open(\'C:\\\\some_text.txt\') print file.readlines() print file.readlines()
When it is run, th
You can reset the file pointer by calling seek():
file.seek(0)
will do it. You need that line after your first readlines(). Note that file has to support random access for the above to work.
readlines()
file