Problem 7
Under what circumstances is a file stream object’s ios::eofbit bit set? What member function reports the state of this bit?
Problem 8
Under what circumstances is a file stream object’s ios::badbit bit set? What member function reports the state of this bit?
Problem 9
How do you read the contents of a text file that contains white space characters as part of its data?
Problem 13
What is the difference between the seekg and seekp member functions?
Problem 14
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?
Problem 15
If a program has read to the end of a file, what must you do before using either the seekg or seekp member functions?
Problem 26
A(n) __________ is a complete set of data about a single item and is made up of __________.
Problem 27
In C++, __________ provide a convenient way to organize data into fields and records.
Problem 51
T F ofstream objects, by default, delete the contents of a file if it already exists when opened.