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|
Reads primitive data from a binary stream.
Writes primitive data in binary format.
A temporary storage for a stream of bytes.
Helps in manipulating a directory structure.
Used for performing operations on directories.
Provides information for the drives.
Helps in manipulating files.
Used for performing operations on files.
Used to read from and write to any location in a file.
Used for random access to streamed data stored in memory.
Performs operations on path information.
Used for reading characters from a byte stream.
Is used for writing characters to a stream.
Is used for reading from a string buffer.
Is used for writing into a string buffer.