17.1 State whether each of the following is true or false. If false, explain why.
You cannot instantiate objects of type Stream
.
Typically, a sequential file stores records in order by the record-key field.
Class StreamReader
inherits from class Stream
.
Any class can be serialized to a file.
Method Seek
of class FileStream
always seeks relative to the beginning of a file.
Classes StreamReader
and StreamWriter
are used with sequential-access files.
17.2 Fill in the blanks in each of the following statements:
The namespace contains the BinaryFormatter
class.
StreamReader
method reads a line of text from a file.
StreamWriter
method writes a line of text to a file.
Method Serialize
of class BinaryFormatter
takes a(n) and a(n) as arguments.
The namespace contains most of C#’s file-processing classes.