|
From: David M. <ci...@ya...> - 2003-09-29 19:20:19
|
Ok if I want to copy a stream to another stream I can mess
with the rdbuf members.
e.g.
fstream myfile("somefile.txt");
cout.rdbuf = myfile.rdbuf;
(or something like that)
However this only sends the data to one stream (redirects
it). How do I get a COPY of the data sent to one stream
sent to another stream.
e.g. I want to 'log' everything sent to cout to a file.
I am guessing I would use the same rdbuf members but the
question is how?
=====
Signed
David Mcken
Life Sucks
Live with it
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
|