Chapter 12: Problem 13
What is the difference between the seekg and seekp member functions?
Chapter 12: Problem 13
What is the difference between the seekg and seekp member functions?
All the tools & learning materials you need for study success - in one app.
Get started for freeWhich file access flag do you use to open a file when you want all output written to the end of the file's existing contents?
In __ file access, the contents of the file are read in the order they appear in the file, from the file's start to its end.
How do you rewind a sequential-access file?
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.
The ___ mode flag causes an offset to be calculated from the end of a file.
What do you think about this solution?
We value your feedback to improve our textbook solutions.