S
Shane
Thanks in advance for your help.
I have created several classes that each have their own member
functions that allow them to print the data stored int their
respective classes. In other words, assuming that the object "m" were
a Multimedia object, if I were to call
m.PrintInfo();
I would see output (cout to the console) with the name of the author,
CD title, publishing date, etc.
Now I need to be able to call this xxx.PrintInfo() from another class
and take whatever goes to the console and also log it to a file. Is
there a way to just capture this data and send it to a file?, or do I
have to go write a new print method for each of these classes
(nooooooooo!).
Any point in the right direction would help. By the way, I know how
to read and write to a file, I'm just not sure how to grab the output
to the console and make it also print to a file.
Shane
I have created several classes that each have their own member
functions that allow them to print the data stored int their
respective classes. In other words, assuming that the object "m" were
a Multimedia object, if I were to call
m.PrintInfo();
I would see output (cout to the console) with the name of the author,
CD title, publishing date, etc.
Now I need to be able to call this xxx.PrintInfo() from another class
and take whatever goes to the console and also log it to a file. Is
there a way to just capture this data and send it to a file?, or do I
have to go write a new print method for each of these classes
(nooooooooo!).
Any point in the right direction would help. By the way, I know how
to read and write to a file, I'm just not sure how to grab the output
to the console and make it also print to a file.
Shane