Manipulating Directories and Pathnames
The .NET Framework makes it easier to work with directories and pathnames, providing the System.IO.Directory
and System.IO.Path
classes. These classes offer shared methods for accessing directories and directory names, enabling deep manipulation of folders and names. To be honest, System.IO.Path
also provides members for working against filenames, and due to its nature, it is included in this section. In some situations, you need to work against single directories as instances of .NET objects, and this is where the System.IO.DirectoryInfo
class comes in. In this section, you learn to get the most from these classes for directory manipulation.
Tip
All the code examples provided in this chapter require an ...
Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.