System.IO namespace in .NET Framework Class Library
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.
FileInfo class provides instance methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects.
DirectoryInfo class exposes instance methods for creating, moving, and enumerating through directories and subdirectories.