I am working on file sharing application in C ++. I want to write console output in a different file and the same Time I also want to see the output in the console. Can anyone help me ... Thanks in advance.
I do not program in c ++ but here is my advice: Create new class, which is the input stream ( Istream in c ++ or smth), and it will move to std.out and file compared to every incoming byte.
I'm sure that there is a way to change the standard output stream along with the advance class as I remember, std.out is some kind of COAT asset.
And then, I spent more than half a year of C ++ in a week, so there is a chance that everything I said is garbage. / P>
Comments
Post a Comment