for line in file:
Then again, most of my files are three dimensional matrices. There's nothing I can really do on a line by line basis.