Q. Which of the method is used to returns the contents of the file line by line?
β
Correct Answer: (D)
IO.readlines
Explanation: One of the IO class methods is IO.readlines. This method returns the contents of the file line by line.