Why is it important to check whether a file exists or not before trying to open it for input?

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter9: Completing The Basics
Section9.2: Exceptions And File Checking
Problem 3E
icon
Related questions
Question

Why is it important to check whether a file exists or not before trying to open it for input?

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer