The ____________ fstream member function closes a file stream.Explain why it is best to close a file when the program is through processing the data in the file.
A) close( )
B) overloaded operator <<( )
C) open( )
D) eof( )
E) flush( )
Correct Answer:
Verified
Q8: When you use the open member function
Q9: A stream is a flow of data
Q10: An output stream is a stream of
Q11: When a program sends data from itself
Q12: An input stream is a stream of
Q14: When you write
ifstream inStream;
inStream.open("infile.dat");
the file,infile.dat must be
Q15: cin is an output stream object of
Q16: The flush member function copies the file
Q17: When you call the setf function on
Q18: You get the manipulators endl and member
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