What are I/O classes in C#?

CsharpProgrammingServer Side Programming

The System.IO namespace has various classes useful for performing various operations with files, such as creating and deleting files, reading from or writing to a file, closing a file etc.

The following are the I/O classes in C# −

Sr.No.I/O Class & Description
1BinaryReader
Reads primitive data from a binary stream.
2BinaryWriter
Writes primitive data in binary format.
3BufferedStream
A temporary storage for a stream of bytes.
4Directory
Helps in manipulating a directory structure.
5DirectoryInfo
Used for performing operations on directories.
6DriveInfo
Provides information for the drives.
7File
Helps in manipulating files.
8FileInfo
Used for performing operations on files.
9FileStream
Used to read from and write to any location in a file.
10MemoryStream
Used for random access to streamed data stored in memory.
11Path
Performs operations on path information.
12StreamReader
Used for reading characters from a byte stream.
13StreamWriter
Is used for writing characters to a stream.
14StringReader
Is used for reading from a string buffer.
15StringWriter
Is used for writing into a string buffer.
raja
Published on 10-Aug-2018 14:21:24
Advertisements