CBSE Class 12 Computer Science Question 14 of 145

File Handling — Question 4

Back to all questions
4
Question

Question 4

Name the functions used to read and write in plain text files.

Answer

The functions used to read in plain text files are as follows :

  1. read()
  2. readline()
  3. readlines()

The functions used to write in plain text files are as follows :

  1. write()
  2. writelines()