Chapter 12: Problem 17
How do you rewind a sequential-access file?
Chapter 12: Problem 17
How do you rewind a sequential-access file?
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?
A negative offset causes the file's read or write position to be moved __ in the file from the position specified by the mode.
True or False It is possible to open a file for both input and output.
Write two statements that use a file stream object named people to open a file named people. 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 output.
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.
What do you think about this solution?
We value your feedback to improve our textbook solutions.