Ask Question
26 March, 14:18

5. If a file does not exist and a program attempts to open it in append mode, what happens

+3
Answers (1)
  1. 26 March, 16:53
    0
    It create a new file in which writing of data begins.

    Explanation:

    A file can be open in the three mode:

    -r (Read mode) : open an existing file for the purpose of reading data from it.

    -w (write mode) : Create a new file for the purpose of writing data to it.

    -a (append mode) : open an existing file for the purpose of appending extra data to it but if the file does not exist, it create a new file and start writing data to it.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “5. If a file does not exist and a program attempts to open it in append mode, what happens ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers