Re: Stream vs. Char * const - Long string of letters


2008-01-22 10:01:10 AM
cppbuilder72
Dan wrote:
Quote
Every so often there's a new line "\n", and in Delphi I was going to make a
TStringList and simply set the delimiter to #13(Carriage reutrn),
If there is a newline \n, why would you check for carriage return \r ?
I only remember two standards: \r\n and \n.
The C standard is \n, and the text mode read converts \r\n into \n.
Quote
remembered that a newline isn't always the same on every OS, linux uses
#10(line feed).
Could you recomend a good delimiter?
What's wrong with newline \n 10 ?
Text stream lines are seperated by \n.