System.IO

The class you’ll work with most often when working with a user’s file system is System.IO. This class provides functionality for working with both files and directories, and allows you to delete, move, copy, and rename files and directories using simple method calls. In addition, System.IO contains the Path class, which is extremely useful for working with paths.

Note

System.IO provides classes for creating new files and writing to existing files (both binary and text). Such files can contain just about anything you can imagine, and I won’t be covering these classes in this chapter.

System.IO.File and System.IO.Directory

File operations are accomplished using System.IO.File, while directory operations are performed using (obviously ...

Get Practical Standards for Microsoft® Visual Basic® .NET, Second Edition 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.