Appendix T. Streams
Visual Studio provides several classes that treat data as a stream. These classes are not difficult to use, but they are similar enough to be confusing. This appendix summarizes the stream classes and describes their properties and their methods.
Stream Class Summary
The following table lists the Visual Studio stream classes. It can provide you with some guidance for selecting a stream class.
Class | Purpose |
|---|---|
| A generic stream class. This is a virtual ( |
| Represents a file as a stream. Usually, you can use a helper class such as |
| Lets you read and write stream data in memory. This is useful when you need a stream but don't want to read or write a file. |
| Adds buffering to another stream type. This sometimes improves performance on relatively slow underlying devices. |
| Read and write data from an underlying stream using routines that manage specific data types (such as |
| These virtual ( |
| These classes inherit from |
| These classes inherit from |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access