Q. Which method reads all lines of a file into a list?
β
Correct Answer: (C)
readlines()
Explanation: readlines() returns a list where each element is a line from the file.