Summary

This chapter began by introducing you to the BCL implementation of the concepts of streams, writers, and readers. Once the basics were out of the way, you explored the capabilities of the FileStream class and how to write binary data to a disk file. From there, you discovered the MemoryStream and BufferedStream classes. As you learned, both of these classes enable you to write to and read from memory to improve performance for file I/O–intensive applications. Additionally, since both classes derive from the base Stream class, you can polymorphically use the same code base in reading and writing data without having to maintain two sets of I/O functions—one for performance-enhancing memory caches and one for disk files.

Once the subject ...

Get Extending MFC Applications with the .NET Framework 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.