File I/O Classes: An Overview

The stream classes are located in the System.IO namespace, together with other classes that can be used to manage the directories and files on your computer. To get an overview of these classes, you can briefly browse through the .NET Framework documentation of the System.IO namespace.

As you gradually get to know the stream classes, you will see that there are usually several ways (perhaps involving different classes) to accomplish the same end result. In this brief presentation, I have chosen a few frequently used ways to get some simple jobs done and will only look at a small subset of the many available classes in the System.IO namespace.

Table 22.1 contains the classes we will look at in the following sections. ...

Get C# Primer Plus 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.