Chapter 22: I’m Saving for the Future (Sequential Access Files)
TRUE/FALSE
1. In addition to getting data from the keyboard and sending data to the computer screen, an application
can also get data from and send data to a file on a disk.
2. Most input and output files are composed of lines of text that are both read and written sequentially.
3. An item of data—such as the string “Taylor”—is viewed similarly by a human being and a computer.
4. Before you create a StreamWriter object, you first declare a variable to store the object in the
computer’s internal memory.
5. When you open a file for output, if the file already exists, the computer erases the contents of the file
before writing any data to it.
6. The “doc” filename extension is commonly used when naming sequential access files.
7. When you are writing data to a file, in most cases you will use the Write method.
8. You can use a text box’s Focus method to send the focus to the text box during run time.
9. After creating the StreamReader object, you declare a variable to store the object in the computer’s
internal memory.
10. You can use the Exists method to avoid the run time error that occurs when the computer cannot locate
the file you want opened for input.
11. The ReadLine method returns a string that contains the sequence of characters in the current line,
including the newline character at the end of the line.