Question: When you call an ofstream object's open member function, the specified file will be erased if it already exists. How would you check if the
When you call an ofstream object's open member function, the specified file will be erased if it already exists. How would you check if the file already exists and ask the user the permission to erase it? Explain your answer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
