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 13
What is the difference between the seekg and seekp member functions?
Problem 44
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.
Problem 49
True or False Different operating systems have different rules for naming files.
Problem 51
True or False ofstream objects, by default, delete the contents of a file if it already exists when opened.
Problem 56
True or False A file stream object's fail member function may be used to determine if the file was successfully opened.
Problem 61
True or False Binary files contain unformatted data, not necessarily stored as text.
Problem 65
Each of the following programs or program segments has errors. Find as many as you can. fstream file(ios:: in | ios: :out) ; file.open ("info.dat") ; if ( ! file) cout \(<<\) "Could not open file. \(\backslash n^{\prime \prime}\)