I have a problem with a program. When i run it on my screen it works fine but when i send all the output to a file it doesn't format the output properly
cout << "hello";
You would see on your screen:
But if i change it so the output goes to an output file that i have opened.
outputfile << "hello";
If you looked at the outputfile it would look like this.
How can i fix this? I seems like gotoxy is only for a cursor location on the screen and the outputfile just ignores it.