What is true about the following statement? out.open("values.dat", ios::app) ;
A) If the file already exists, its contents are preserved and all output is written to the end of the file.
B) If the file exists, it should be replaced with a new copy of values.dat
C) If the file exists, it can be opened but not modified
D) None of these
Correct Answer:
Verified
Q2: This member function reads a single character
Q5: To access files from a C++ program,
Q6: In order, the three-step process of using
Q11: When used by itself, this access flag
Q13: This state bit can be tested to
Q13: Outside of a C++ program, a file
Q13: The ios::out flag causes the file's existing
Q14: By default, files are opened in binary
Q18: To set up a file to perform
Q20: This data type can be used to
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