Question: In C++ 5) Opening a file: The following code is used to attempt to open a file: ifstream infile; infile.open(test.txt); What can be put into
In C++
5) Opening a file: The following code is used to attempt to open a file:
ifstream infile;
infile.open(test.txt);
What can be put into the expression of an if statement to determine if the file was unsuccessful in its attempt to open?
6) Closing a file: Why is it important to close a file before a program terminates on its own?
Using C++ programming
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
