What I Learned Today
Python File I/O (Reading Files)

To read in a file from python


infile = file(filename, "r")  

while(infile):
  line = infile.readline()     
  if(line == ""):         
    break     
  else:     
    print line