find and solve || findandsolve.com
Please wait.....

C# System.IO Namespace

In c#, System.IO is a namespace that will contain standard IO (input/output) types such as structures, classes, enumerations, and delegates to perform read/write operations on different sources like file, memory, network, etc.

C# System.IO Namespace Classes

ClassDescription
BinaryReaderRead primitive data types as binary values in a specific encoding.
BinaryWriter Write primitive types in binary to a stream.
BufferedStreamAdd a buffering layer to read and write operations on another stream. It is a sealed class.
Directory Expose static methods for creating, moving and enumerating through directories and subdirectories. It is a sealed class.
DirectoryInfoExpose instance methods for creating, moving and enumerating through directories and subdirectories. It is a sealed class.
DirectoryNotFoundException Handle exception related to the file or directory cannot be found.
DriveInfoAccess the information on a drive.
DriveNotFoundExceptionHandle drives not found exception.
EndOfStreamExceptionHandle end of stream exception.
ErrorEventArgsProvides data for the FileSystemWatcher.Error event.
Filefile class provides static methods for the creation, copying, deletion, moving and opening of a single file.
FileFormatExceptionHandle file format exception.
FileInfoProvide properties and instance methods for the creation, copying, deletion, moving and opening of files.
FileLoadExceptionHandle file load exception.
FileNotFoundExceptionHandle file load exception.
FileNotFoundExceptionHandle file not found exception.
FileStreamFileStream provides a Stream for a file, supporting both synchronous and asynchronous read and write operations.
FileSystemEventArgsProvides data for the directory events.
FileSystemInfoProvides the base class for both FileInfo and DirectoryInfo objects.
FileSystemWatcherListens to the file system change notifications and raises events when a directory or file in a directory, changes.
InternalBufferOverflowExceptionHandle internal buffer overflow exception.
InvalidDataExceptionHandle invalid data exception.
IODescriptionAttributeDescription visual designers can display when referencing an event, extender or property.
IOExceptionException class that handles I/O errors.
MemoryStreamCreate a stream whose backing store is memory.
PathTooLongExceptionException class and used to handle path too long exception.
PipeExceptionHandle pipe related exception.
RenamedEventArgsProvide data for the Renamed event.
PathPerforms operations on String instances that contain file or directory path information.
StreamProvide a generic view of a sequence of bytes. It is an abstract class.
StreamReaderImplement a TextReader that reads characters from a byte stream.
StringReaderImplement a TextReader that reads from a string.
StringWriterImplement a TextWriter for writing information to a string. The information is stored in an underlying StringBuilder.
TextReaderRepresent a reader that can read a sequential series of characters.
TextWriterRepresent a writer that can write a sequential series of characters.
UnmanagedMemoryAccessor Provide random access to unmanaged blocks of memory from managed code.
UnmanagedMemoryStreamGet access to unmanaged blocks of memory from managed code.

System.IO Namespace Structures

StructureDescription
WaitForChangedResultIt contains information on the change that occurred.

System.IO Namespace Delegates

DelegatesDescription
ErrorEventHandlerRepresents is the method that will handle the Error event of a FileSystemWatcher object.
FileSystemEventHandlerRepresents is the method that will handle the Changed, Created, or Deleted event of a FileSystemWatcher class.
RenamedEventHandlerRepresents is the method that will handle the renamed event of a FileSystemWatcher class.

System.IO Namespace Enumerations

EnumerationDescription
DriveTypeDefine constants for drive types including CDRom, Fixed, Network etc.
FileAccessDefine constants for reading, writing, or read/write access to a file.
FileAttributesProvide attributes for files and directories.
FileModeSpecify how the operating system should open a file.
FileOptionsRepresents advanced options for creating a FileStream object.
FileShareContain constants for controlling the kind of access other FileStream objects can have to the same file.
HandleInheritabilityIt specifies whether the underlying handle is inheritable by child processes.
NotifyFiltersSpecify changes to watch for in a file or folder.
SeekOriginSpecify the position in a stream to use for seeking.
SearchOptionSpecify whether to search the current directory or the current directory and all subdirectories.
WatcherChangeTypes It changes that might occur to a file or directory.