What are the classes available in System.IO namespaces? Explain few of them.

 Posted by vishalneeraj-24503 on 1/28/2014 | Category: C# Interview questions | Views: 2308 | Points: 40
Answer:

It has several classes like below:

BinaryReader: Reads primitive data types as binary values in a specific encoding.
BinaryWriter: Writes primitive data in binary format.
Directory: Used for creating,moving and manupulating Directory.
FileStream: Used to read from and write to any location in a file.
MemoryStream: Used for random access to streamed data stored in memory.
Path: It is used to get file path.
StreamWriter: It is used for writing characters to a stream in a particular encoding.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response