Summary
Working with files, directories, and drives is a common requirement for each application. The .NET Framework provides two main classes for working with directories: System.IO.Directory and System.IO.Path. The first one enables you to perform operations such as creating, moving, renaming, and investigating for filenames. The second one is about directory and filename manipulation other than gaining access to Windows temporary folder. Similar to Directory, the System.IO.DirectoryInfo class provides access to directory operations and information, but the difference is that an instance of such a class represents a single directory. If you instead need to get information on physical drives on your machine, create an instance of the System.IO.DriveInfo ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access