Which among the following classes are used to perform the character based file operations?
A. StreamReader
B. StreamWriter
C. InputStream
D. OutputStream
Answer:A
Which among the following classes are used to perform the character based file operations?
A. StreamReader B. StreamWriter C. InputStream D. OutputStream
Explanation: In general, to perform character-based file operations, wrap a FileStream inside a StreamReader or a StreamWriter. These classes automatically convert a byte stream into a character stream, and vice versa.