Ask Question
1 December, 08:55

Explain what happens if you try to open a file for reading that does not exist.

+3
Answers (1)
  1. 1 December, 11:54
    0
    Exception is thrown and the file is created with 0 length.

    Explanation:

    While opening a file there is an error occur which shows the file does not exist that means an exception is thrown.

    And this error can be occur when the size of the file is very very low means the file is a size of 0 length. So to avoid this error we have to exceed its length from the zero length.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Explain what happens if you try to open a file for reading that does not exist. ...” 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