If you want to upload code, just throw it on pastebin or a similar paste site, and link it here.
Regarding the idea:
You can just use file.readlines(), saves space and time. Also, "for var in file" automatically iterates over each line, which is even more efficient than doing a .readlines()...