Hey guys,
I'm trying to write something to a .txt file from within my program using ofstream.
I have this function names show_results() which is a bunch of cout statements that are connected to a class and a bunch of member functions.
But the function show_results is all cout statements. How do I write the all the the function (what you would see when running the program) to a .txt file.
Thanks