Original Post
I read the chapter in Stroustrup's C++ book on streams in an attempt to figure this out, but just got more confused.
I want to be able to use operators >> and << for reading and writing numbers as binary data to a stream. All the streams support right now is textual data. I'd like to make it fit into the standard stream hierarchy. What do I change in order to do this? Make a new locale? Or make a new type of stream?
Edit: forgot to mention that I'd like to avoid the client of this class using read()/write() member functions as well.
[edited by - antareus on May 10, 2003 11:55:22 PM]