An alternative to using the open member function is to use the file stream object declaration itself to open the file.
Example:
fstream DataFile("names.dat", ios::in | ios::out);
Correct Answer:
Verified
Q2: To write to a file, you use
Q9: The ios::hardfail bit is set when an
Q13: The ios::out flag causes the file's existing
Q16: When data is read from a file,
Q17: Which statement opens a file and links
Q18: To set up a file to perform
Q18: When used by itself, the ios::app flag
Q20: This data type can be used to
Q26: All stream objects have _, which indicate
Q36: ofstream, ifstream, and fstream are
A) header files
B)
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