Question: Which technique for reading a file is the most appropriate when working with very large text files? Group of answer choices Read one line at

Which technique for reading a file is the most appropriate when working with very large text files?
Group of answer choices
Read one line at a time in a for loop.
Read all at once with the read() command.
Read the entire file into a list with the readlines() command.
Open and close the file many times, reading a small portion at a time.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!