Ask Question
6 September, 09:24

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

+2
Answers (1)
  1. 6 September, 11:40
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers