C# File & Directory Handling

C# provides many utility classes to work with the file systems. The DriveInfo class will give us the information about a specific drive in the windows file system. Other similar classe DirectoryInfo provides information about the specific directory and all the file it contains. Similarly FileInfo class provides information about the file and File class provides API functions to perform File Copy and Move actions. In this example, we will explore File system access by using the dot net provided API functions.