Hello Olaf,
I'm using ostringstream and I'd like to generate \r\n line ends
instead of \n ones. Is there a flag for this?
I don't think there is a flag...
If you are on a Windows box, "\n" will be converted to "\r\n" when
writing ***to a file*** (that is opened in "text mode"). And vice versa.
If you really need character-strings with "\r\n" line endings (why?)
you would have to convert the line-endings "manually".
Please note that line-endings are platform-specific; IIRC Windows
uses "\r\n", Linux "\n", Macintosh "\r" etc. Thus, you better just
open your text files in "text mode" and let the Standard Libary
(or the operating system) do The Right Thing (tm).
Best regards,
Tilman