Chapter 12: Problem 3
Assume that the file data.txt already exists, and the following statement executes. What happens to the file? fstream file("data.txt", ios::out);
Chapter 12: Problem 3
Assume that the file data.txt already exists, and the following statement executes. What happens to the file? fstream file("data.txt", ios::out);
All the tools & learning materials you need for study success - in one app.
Get started for freeIn __________ file access, the contents of a file may be read in any order.
What is the difference between the seekg and seekp member functions?
What capability does the fstream data type provide that the ifstream and ofstream data types do not?
If a program has read to the end of a file, what must you do before using either the seekg or seekp member functions?
How do you combine multiple file access flags when opening a file?
What do you think about this solution?
We value your feedback to improve our textbook solutions.