Ask Question

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

+5
Answers (1)
  1. 13 January, 15:01
    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 & 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