The readline() is used to read the data line by line from the text file

70. The readline() is used to read the data line by line from the text file.

  1. True
  2. False

Answer: A) True

Explanation:

It is necessary to use readline() in order to read the data from a text file line by line. The lines are displayed by employing the print() command. When the readline() function reaches the end of the file, it will return an empty string.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.