Question: What do the following statements do ? ofstream stream ( scores . txt ) ; Open a file for output, the statement fails
What do the following statements do
ofstream streamscorestxt;
Open a file for output, the statement fails if the file already exists.
Open a file for input.
Open a file for input, the statement fails if the file does not exist.
Open a file for output, the conterits of the file is destroyed if the file already exists.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
