What is the best way to read a very large file line-by-line (like a text file having 50,000,000 lines, the file size is larger than 8GB). Actually, there are dozens of thus files.
Basically, it need to read those file one-by-one. For each file, after read one line, it will do something that take some time to complete (such as, make an http request to send the data to a remote service. In this case, the http request is slower than reading file.)
Thank you.