What is the use of “w” in file handling?
A. Read
B. Write
C. Append
D. None of the the mentioned
Answer:A
What is the use of “w” in file handling?
A. Read B. Write C. Append D. None of the the mentioned
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.