Can someone write some sample code to explain this concept?
I know what a buffered stream is used for, but I also would like to know how to implement that.
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can look into your platform’s implementation, the C++ standard or “Standard C++ IOstreams and Locales” by Angelika Langer and Klaus Kreft.
Be prepared for quite a learning curve. Streams are old and a complicated matter. (Francis Glassborow: “I have very few doubts that I/O libraries are amongst the most difficult aspects of any language.”)