CBSE Class 12 Computer Science Question 77 of 145

File Handling — Question 12

Back to all questions
12
Question

Question 12

When you open a file for appending, if the file exists, the existing file is overwritten with the new file.

Answer

False

Reason — When we open a file for appending using a mode (text files) or ab mode (binary files), if the file exists, the data in the file is retained and new data being written will be appended to the end.