I want to iterate over each line of an entire file. One way to do this is by reading the entire file, saving it to a list, then going over the line of interest. This method
this is a possible way of reading a file in python:
f = open(input_file) for line in f: do_stuff(line) f.close()
it does not allocate a full list. It iterates over the lines.