Q. Which method reads one line at a time from a file?

  • (A) read()
  • (B) readline()
  • (C) readlines()
  • (D) nextline()
πŸ’¬ Discuss
βœ… Correct Answer: (B) readline()
Explanation: readline() returns one line at a time from the file.
Explanation by: Mr. Dubey
readline() returns one line at a time from the file.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
71
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate