Share via


System.IO Namespace

Contains types that facilitate reading from and writing to data streams.

Classes

Name Description
Public Class Directory Exposes static methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited.
Public Class DirectoryInfo Exposes instance methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited.
Public Class File Provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects.
Public Class FileInfo Provides instance methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects. This class cannot be inherited.
Public Class FileStream Exposes a Stream around a file, supporting both synchronous and asynchronous read and write operations.
Public Class FileSystemInfo Provides the base class for both FileInfo and DirectoryInfo objects.
Public Class IOException The exception that is thrown when an input/output (I/O) error occurs.
Public Class MemoryStream Creates a stream whose backing store is memory.
Public Class Path Performs operations on String instances that contain file or directory path information. These operations are performed in a cross-platform manner.
Public Class Stream Provides a generic view of a sequence of bytes.
Public Class StreamReader Implements a TextReader that reads characters from a byte stream in a particular encoding.
Public Class StreamWriter Implements a TextWriter for writing characters to a stream in a particular encoding.
Public Class TextReader Represents a reader that can read a sequential series of characters.
Public Class TextWriter Represents a writer that can write a sequential series of characters. This class is abstract.

Enumerations

Name Description
Public Enumeration FileAccess Defines constants for read, write, or read/write access to a file.
Public Enumeration FileAttributes Provides attributes for files and directories.
Public Enumeration FileMode Specifies how the operating system should open a file.
Public Enumeration FileShare Contains constants for controlling the kind of access other FileStream objects can have to the same file.
Public Enumeration SeekOrigin Provides the fields that represent reference points for seeking in data streams.