The statement dataFile.close() ;
A) is legal but risks losing valuable data.
B) needs a file name argument to execute correctly.
C) is illegal in C++.
D) closes a file.
E) None of the above
Correct Answer:
Verified
Q2: Outside of a C++ program, a file
Q3: The function can be used to store
Q4: The member function, _, reads a single
Q5: All stream objects have that indicate the
Q6: The process of writing in- memory objects
Q8: Data stored is lost when the computer
Q9: The state bit,
A)ios::eof
B)ios::failbit
C)ios::badbit
D)ios::eofbit , can be tested
Q10: ofstream, ifstream, and fstream are
A)libraries.
B)string arrays.
C)data types.
D)header
Q11: A file _ is a small holding
Q12: Closing a file causes any buffered information
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