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.
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. ...
Get C# 5.0 Unleashed 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.