CBSE Class 12 Computer Science Question 47 of 145

File Handling — Question 8

Back to all questions
8
Question

Question 8

Which of the following statement is not correct ?

  1. We can write content into a text file opened using 'w' mode.
  2. We can write content into a text file opened using 'w+' mode.
  3. We can write content into a text file opened using 'r' mode.
  4. We can write content into a text file opened using 'r+' mode.
Answer

We can write content into a text file opened using 'r' mode

Reason — We can only read content into a text file opened using 'r' mode.