I hardly find a good resource about the subject. Almost all books and websites I know give a simple introduction about streams in C++ and that's it!
Would you recommend a good book or tutorial to learn more about standard streams in C++ ?
I hardly find a good resource about the subject. Almost all books and websites I know give a simple introduction about streams in C++ and that's it!
Would you recommend a good book or tutorial to learn more about standard streams in C++ ?
It's been long since I've read it, but I remember that Stroustrups The C++ Programming Language is at least thorough in using streams - including overloading etc. It doesn't handle much of stream implementation, though.
The best book on the subject is C++ IOStreams & Locales by langer & Kreft. This covers stuff on deriving your own streambufs etc. that most books don't touch. I could live without the locales stuff, however.
I've used The C++ Programming Language by Bjarne Stroustrup. However, it delves into the design decisions and implementation details of streams, which can be a whole lot more than what you want.
In that case, you could try The C++ Standard Library: A Tutorial and Reference which gives a decent overview without going into much depth.
If you come across The C++ Standard Library by Josuttis (published by Addison-Wesley) it also contains a decent chapter on streams.