Q. Which of the following will correctly read all lines from a file `file.txt`?
β
Correct Answer: (D)
All of the above
Explanation: All these methods can read lines; readlines() returns a list of lines, read() returns entire content.