When OutFile to a text file, why does it display in a straight line even though I have set << endl; at the end?
Printable View
When OutFile to a text file, why does it display in a straight line even though I have set << endl; at the end?
More code.
No idea.
Post a program which does this (a test program if your main program is large), and state your operating system and compiler.
Why is your title "reading form text file" when the problem is about writing to it? :)
Anyway, what program do you use to view it? That might be the problem too. I've noticed this effect on other text files, most likely caused by the \n \r stupidity...
I use Notepad to see the text file.
Try wordpad?
Oh OK, thanx. I can see them in a better layout.