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
> How do I print this out a .txt file like output.txt?
In exportTable(), replace all cout << with outfile <<