I would think that is enough. But what to do CRLF ( 0x0D0A ) when you can just use CR ( 0D )? Usually when I use strings (C ++), I do this:
myString = "Test\nThis should be a new line!\nAnother linefeed.";
NOTE. For non-C ++ programmers who read this, "\n" is the line feed ( 0x0A ).
But I really have to do this:
myString = "Test\r\nThis should be a new line!\r\nAnother carriage return/linefeed pair.";
NOTE: "\r" means carriage return ( 0x0D ).
EDIT: Should it be on Programmers.SE?
source share