CPB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: writing AnsiStrings to a stream



Travis,

The nice thing about streams (C++ style) is that they can be subclassed to
facilitate other data types (typedefs, structs, classes, etc). If you subclass
the streams class you can override the insertion (<<) and extraction (>>)
operators so that you are able to write code that outputs complex data types
to a file as easily as you can output literals or integers. Most of the better
C++ books cover streams, at least to this level of detail.

Best of Luck.

Von R. Colborn
Cornerstone Systems, Inc.



W Komornicki's Home Page | Main Index | Thread Index