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 freeThe ___ member function returns a file's current write position.
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.
Should file stream objects be passed to functions by value or by reference? Why?
A negative offset causes the file's read or write position to be moved __ in the file from the position specified by the mode.
How 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?
What do you think about this solution?
We value your feedback to improve our textbook solutions.