I’m trying to get an output into a text file. Always when I add to in endl or “\n” it doesn’t start a new line, but puts a square in the file instead.
I’ve done it in Dev-C++ and also with Qt, but always the same result. Do you know where’s the problem?
Thanks for your answers.
If you want to display a new line in Windows, use
"\r\n"instead"\n".(read more at http://en.wikipedia.org/wiki/Newline#Representations)