Stream, Readers, and Writers in .NET

The System::IO namespace provides a set of classes for file and file-content manipulation. Included in these types are classes that implement stream, writer, and reader behavior. As these concepts are new to most MFC developers, I'll first present an overview of these types and then move into a couple of demo applications in order to illustrate their use from MFC applications.

A stream is an abstraction of a sequence of bytes that might be represented by such entities as a disk file, an input/output device, or even a TCP/IP socket. (Where the data is actually stored is sometimes referred to as the stream's backing store.) The point is that the stream itself abstracts, or isolates, the programmer from the technical ...

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.