O'Reilly logo

C# 5.0 Unleashed by Bart De Smet

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

Streams: The Bread and Butter of I/O

The notion of a stream is the lowest you can go in terms of .NET’s managed code I/O system. Figure 28.4 shows an overview of the members of the Stream class.

Image

FIGURE 28.4 The Stream class seen through Object Browser.

First of all, let’s discuss a stream’s potentially supported capabilities, which include the capability to read from and write to a stream and also the capability to seek. A seek operation basically moves a cursor—as seen through the Position property—that indicates where the next read or write operation will take place. Another capability is whether an operation on a stream is subject to timeout. ...

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