Share via


System.IO Namespace

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Classes

  Class 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 FileEnum Contains members for working with files.
Public class FileEnumerator Exposes the file enumerator, which supports a simple iteration over a collection.
Public class FileInfo Provides properties and 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 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

  Enumeration 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 FileEnumFlags Contains values to represent 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 IOException. . :: . .IOExceptionErrorCode Provides values for error codes.
Public enumeration SeekOrigin Specifies the position in a stream to use for seeking.