CBSE Class 12 Computer Science Question 50 of 145

File Handling — Question 11

Back to all questions
11
Question

Question 11

Which function is used to read all the characters ?

  1. read()
  2. readcharacters()
  3. readall()
  4. readchar()
Answer

read()

Reason — read() function is used to read all the characters in a file.