CBSE Class 12 Computer Science Question 51 of 145

File Handling — Question 12

Back to all questions
12
Question

Question 12

Which function is used to read a single line from file ?

  1. readline()
  2. readlines()
  3. readstatement()
  4. readfullline()
Answer

readline()

Reason — readline() function is used to read a single line from file.