System.IO Namespace Classes

Several classes in the System.IO namespace provide the ability to perform both asynchronous and synchronous IO. The directory and file-related classes deal with the directories and files as they exist on disk. Streams deal with reading and writing data to other mediums (including files). For instance, a stream can be a file, memory, or a network share. Table 12.1 lists the various classes for dealing with directories and files.

Table 12.1. Directory and File Classes from System.IO
ClassPurpose
DirectoryProvides static methods for performing directory operations such as copying, moving, renaming, creating, and deleting. Methods in the Directory class perform a security check. Therefore, if you intend to perform more than ...

Get Delphi for .NET Developer’s Guide 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.