Multiple Choice
The statement dataFile.close() ;
A) is illegal in C++.
B) needs a file name argument to execute correctly.
C) closes a file.
D) is legal but risks losing valuable data.
E) None of the above
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q10: File output may be formatted the same
Q11: The _ may be used to read
Q12: string objects cannot be stored to a
Q13: Which statement opens a file in such
Q14: The state bit, _, can be tested
Q16: All stream objects have _ that indicate
Q17: ofstream, ifstream, and fstream are<br>A) header files.<br>B)
Q18: The member function _ writes a single
Q19: To access files from a C++ program,
Q20: The state bit _ is set when