_____________________ is used to open a sequential access file for output.

_____________________ is used to open a sequential access file for output.
A. CreateText method
B. AppendText method
C. OpenText method
D. WriteText method
 
Answer: A
Explanation: Creating a StreamWriter object involves opening a sequential access file using one of two methods: CreateText or AppendText. You use the CreateText method to open a sequential access file for output. When you open a file for output, the computer creates a new, empty file to which data can be written. If the file already exists, the computer erases the contents of the file before writing any data to it.
 

Tìm kiếm

Back
Top