The System.IO namespace contains types that allow reading and writing to files and data streams, and types that provide basic file and directory support.
Type | Reason |
---|---|
BinaryReader |
![]() Reads primitive data types as binary values in a specific encoding. |
BinaryWriter |
![]() Writes primitive types in binary to a stream and supports writing strings in a specific encoding. |
BufferedStream |
![]() Adds a buffering layer to read and write operations on another stream. This class cannot be inherited. |
Directory |
![]() Exposes static methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited. |
DirectoryInfo |
![]() Exposes instance methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited. |
DirectoryNotFoundException |
![]() The exception that is thrown when part of a file or directory cannot be found. |
DriveInfo |
![]() Provides access to information on a drive. |
DriveNotFoundException |
![]() The exception that is thrown when trying to access a drive or share that is not available. |
DriveType |
![]() Defines constants for drive types, including CDRom, Fixed, Network, NoRootDirectory, Ram, Removable, and Unknown. |
EndOfStreamException |
![]() The exception that is thrown when reading is attempted past the end of a stream. |
ErrorEventArgs |
![]() Provides data for the System.IO.FileSystemWatcher.Error event. |
ErrorEventHandler |
![]() Represents the method that will handle the System.IO.FileSystemWatcher.Error event of a System.IO.FileSystemWatcher object. |
File |
![]() Provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of System.IO.FileStream objects. |
FileAccess |
![]() Defines constants for read, write, or read/write access to a file. |
FileAttributes |
![]() Provides attributes for files and directories. |
FileInfo |
![]() Provides properties and instance methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of System.IO.FileStream objects. This class cannot be inherited. |
FileLoadException |
![]() The exception that is thrown when a managed assembly is found but cannot be loaded. |
FileMode |
![]() Specifies how the operating system should open a file. |
FileNotFoundException |
![]() The exception that is thrown when an attempt to access a file that does not exist on disk fails. |
FileOptions |
![]() Represents advanced options for creating a System.IO.FileStream object. |
FileShare |
![]() Contains constants for controlling the kind of access other System.IO.FileStream objects can have to the same file. |
FileStream |
![]() Exposes a System.IO.Stream around a file, supporting both synchronous and asynchronous read and write operations. |
FileSystemEventArgs |
![]() Provides data for the directory events: System.IO.FileSystemWatcher.Changed, System.IO.FileSystemWatcher.Created, System.IO.FileSystemWatcher.Deleted. |
FileSystemEventHandler |
![]() Represents the method that will handle the System.IO.FileSystemWatcher.Changed, System.IO.FileSystemWatcher.Created, or System.IO.FileSystemWatcher.Deleted event of a System.IO.FileSystemWatcher class. |
FileSystemInfo |
![]() Provides the base class for both System.IO.FileInfo and System.IO.DirectoryInfo objects. |
FileSystemWatcher |
![]() Listens to the file system change notifications and raises events when a directory, or file in a directory, changes. |
HandleInheritability |
![]() Specifies whether the underlying handle is inheritable by child processes. |
InternalBufferOverflowException |
![]() The exception thrown when the internal buffer overflows. |
InvalidDataException |
![]() The exception that is thrown when a data stream is in an invalid format. |
IODescriptionAttribute |
![]() Sets the description visual designers can display when referencing an event, extender, or property. |
IOException |
![]() The exception that is thrown when an I/O error occurs. |
MemoryStream |
![]() Creates a stream whose backing store is memory. |
NotifyFilters |
![]() Specifies changes to watch for in a file or folder. |
Path |
![]() Performs operations on string instances that contain file or directory path information. These operations are performed in a cross-platform manner. |
PathTooLongException |
![]() The exception that is thrown when a path or file name is longer than the system-defined maximum length. |
RenamedEventArgs |
![]() Provides data for the System.IO.FileSystemWatcher.Renamed event. |
RenamedEventHandler |
![]() Represents the method that will handle the System.IO.FileSystemWatcher.Renamed event of a System.IO.FileSystemWatcher class. |
SearchOption |
![]() Specifies whether to search the current directory, or the current directory and all subdirectories. |
SeekOrigin |
![]() Specifies the position in a stream to use for seeking. |
Stream |
![]() Provides a generic view of a sequence of bytes. This is an abstract class. |
StreamReader |
![]() Implements a System.IO.TextReader that reads characters from a byte stream in a particular encoding. |
StreamWriter |
![]() Implements a System.IO.TextWriter for writing characters to a stream in a particular encoding. |
StringReader |
![]() Implements a System.IO.TextReader that reads from a string. |
StringWriter |
![]() Implements a System.IO.TextWriter for writing information to a string. The information is stored in an underlying System.Text.StringBuilder. |
TextReader |
![]() Represents a reader that can read a sequential series of characters. |
TextWriter |
![]() Represents a writer that can write a sequential series of characters. This class is abstract. |
UnmanagedMemoryAccessor |
![]() Provides random access to unmanaged blocks of memory from managed code. |
UnmanagedMemoryStream |
![]() Provides access to unmanaged blocks of memory from managed code. |
WaitForChangedResult |
![]() Contains information on the change that occurred. |
WatcherChangeTypes |
![]() Changes that might occur to a file or directory. |