Ask Question

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

+3
Answers (1)
  1. 2 March, 02:12
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers