
- C# Basic Tutorial
- C# - Home
- C# - Overview
- C# - Environment
- C# - Program Structure
- C# - Basic Syntax
- C# - Data Types
- C# - Type Conversion
- C# - Variables
- C# - Constants
- C# - Operators
- C# - Decision Making
- C# - Loops
- C# - Encapsulation
- C# - Methods
- C# - Nullables
- C# - Arrays
- C# - Strings
- C# - Structure
- C# - Enums
- C# - Classes
- C# - Inheritance
- C# - Polymorphism
- C# - Operator Overloading
- C# - Interfaces
- C# - Namespaces
- C# - Preprocessor Directives
- C# - Regular Expressions
- C# - Exception Handling
- C# - File I/O
- C# Advanced Tutorial
- C# - Attributes
- C# - Reflection
- C# - Properties
- C# - Indexers
- C# - Delegates
- C# - Events
- C# - Collections
- C# - Generics
- C# - Anonymous Methods
- C# - Unsafe Codes
- C# - Multithreading
- C# Useful Resources
- C# - Questions and Answers
- C# - Quick Guide
- C# - Useful Resources
- C# - Discussion
What are I/O classes in C#?
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 |
---|---|
1 | BinaryReader Reads primitive data from a binary stream. |
2 | BinaryWriter Writes primitive data in binary format. |
3 | BufferedStream A temporary storage for a stream of bytes. |
4 | Directory Helps in manipulating a directory structure. |
5 | DirectoryInfo Used for performing operations on directories. |
6 | DriveInfo Provides information for the drives. |
7 | File Helps in manipulating files. |
8 | FileInfo Used for performing operations on files. |
9 | FileStream Used to read from and write to any location in a file. |
10 | MemoryStream Used for random access to streamed data stored in memory. |
11 | Path Performs operations on path information. |
12 | StreamReader Used for reading characters from a byte stream. |
13 | StreamWriter Is used for writing characters to a stream. |
14 | StringReader Is used for reading from a string buffer. |
15 | StringWriter Is used for writing into a string buffer. |
- Related Articles
- What are I/O classes in Java?
- What are key-based I/O collections in C#?
- What are the classes in C#?
- What are collection classes in C#?
- What are nested classes in C#?
- What are abstract classes in C#?
- What are the high level I/O functions in C language?
- What are storage classes of variables in C++?
- What are Base and Derived Classes in C#?
- What are the rules for naming classes in C#?
- I/O Redirection in C++
- What are Java classes?
- What are final classes in Java?
- What are abstract classes in Java?
- What are inner classes in Java?

Advertisements