In Visual Basic, you use _________________ to write a stream of characters.

Stasenndb

New member
In Visual Basic, you use _________________ to write a stream of characters.
A. StreamWriter object
B. StreamWriter class
C. StreamReader object
D. StreamReader class
 
Answer: A
Explanation: Programmers refer to a sequence of characters as a stream of characters. In Visual Basic, you use a StreamWriter object to write a stream of characters to a sequential access file. Before you create the StreamWriter object, you first declare a variable to store the object in the computer’s internal memory. The syntax is as follows:
Code:
{Dim | Private} streamWriterVariableName As IO.StreamWriter
The IO in the syntax stands for Input/Output.
 

Tìm kiếm

Back
Top