I am sorry if this is a repeat question. How do I write a python script to process data as a stream of line? I need to do this because the files that I am processing are huge, and I would rather not read the file into the memory.
I know that you can potentially read one line of the file at a time, but I want something that will process a text stream.