Reading a file and printing it

Mar 20, 2017 at 3:12am
I have this program. It's supposed to read from a .txt file like:

The problem is, this prints on the console. How do I print this out a .txt file like output.txt?
Last edited on Mar 21, 2017 at 1:44am
Mar 20, 2017 at 3:34am
> How do I print this out a .txt file like output.txt?

In exportTable(), replace all cout << with outfile <<
Topic archived. No new replies allowed.