File System Classes

In addition to the Stream and Writer/Reader classes discussed so far, .NET Framework also provides a very powerful set of classes for encapsulating information and functionality that are suitable for processing files and directories. These classes, which also reside in the System.IO namespace, are listed in Table 3-4.

Now let's see just what these classes can provide for us and how best to utilize them.

Table 3-4. File System Classes in the System::IO Namespace
ClassDescription
FileSystemInfoThe abstract base class for FileInfo and DirectoryInfo objects, this class contains methods that are common to both file and directory manipulation. As this is the base class for both, it is useful when writing polymorphic code that must ...

Get Extending MFC Applications with the .NET Framework 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.