Q.

What is the use of “w” in file handling?

A. read
B. write
C. append
D. none of the mentioned
Answer» B. write
Explanation: this opens the file for writing. it will create the file if it doesn’t exist, and if it does, it will overwrite it.
2.2k
0
Do you find this helpful?
38

Discussion

No comments yet