How can I read large text files line by line, without loading it into memory?
I need to read a large file, line by line. Lets say that file has more than 5GB and I need to read each line, but obviously I do not want to use readlines() because it will create a very large list in the memory. How will the code below work for this case? Is … Read more