Chapter 12: Problem 59
T F The getline member function can be used to read text that contains whitespaces.
Chapter 12: Problem 59
T F The getline member function can be used to read text that contains whitespaces.
All the tools & learning materials you need for study success - in one app.
Get started for freeT F The same output formatting techniques used with cout may also be used with file stream objects.
Write two statements that use a file stream object named pets to open a file named pets.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 input.
A negative offset causes the file’s read or write position to be moved __________ in the file from the position specified by the mode.
T F It is possible to open a file for both input and output.
Under what circumstances is a file stream object’s ios::hardfail 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.