Code you can use
Boost::IOStreams provides classes for constructing input and output filters, or to create new sources and sinks. Implements some of the things we've talked about - memory mapped files, file descriptor, a container
Aeryn has logging and null streams
Arabica has a converting filter and some codecvt facets
Langer and Kreft is the book on IOStreams, but you don't need to buy it now :)