Using the QT library, is there a simple way to obtain the line ending characters particular to the platform where the program is being executed?
How can I obtain the line ending characters as a QString?
Using the QT library, is there a simple way to obtain the line ending characters particular to the platform where the program is being executed?
How can I obtain the line ending characters as a QString?
If you are working with text files, open files in text mode and use \n
. Please note that using endl
is no more portable than \n
.