Chapter 12: Problem 1
What capability does the fstream data type provide that the ifstream and ofstream data types do not?
Chapter 12: Problem 1
What capability does the fstream data type provide that the ifstream and ofstream data types do not?
All the tools & learning materials you need for study success - in one app.
Get started for freeHow do you get the byte number of a file’s current read position? How do you get the byte number of a file’s current write position?
T F If a file is opened in the definition of the file stream object, no mode flags may be specified.
Write two statements that use a file stream object named places to open a file named places.dat. (Show how to open the file with a member function and at the definition of the file stream object.) The file should be opened for both input and output.
A negative offset causes the file’s read or write position to be moved __________ in the file from the position specified by the mode.
Under what circumstances is a file stream object’s ios::badbit bit set? What member function reports the state of this bit?
What do you think about this solution?
We value your feedback to improve our textbook solutions.