Opening a file with the flags ios::in | ios::out will preserve the contents of the file if the file already exists.
Correct Answer:
Verified
Q7: When you store data in a variable,
Q16: File output may be formatted the same
Q25: The stream member function fail() can be
Q26: When used by itself, _ causes a
Q27: The ios::hardfail bit is set when an
Q28: To write to a binary file, you
Q30: string objects cannot be stored to a
Q31: The operation of moving to a particular
Q33: The read and write member functions of
Q34: When the >> operator extracts information from
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents