O'Reilly logo

A Programmer's Guide to .NET by Alexei Fedorov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4.1. System.IO namespace – streams and file system access

This namespace contains classes and other types used to work (synchronous and asynchronous reading and writing) with data streams and files. The System.IO namespace consists of classes that implement streams, streams readers, and writers, as well as classes used to work with the file system. Figure 4.1 shows most of the classes in the System.IO namespace.

Figure 4.1. The main classes in the System.IO namespace

Streams

The Stream class is an abstract view of a sequence of bytes. Derived classes provide more specific functionality – working with files (FileStream class), memory (MemoryStream ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required