Working with Strings
Posted on 2002-07-25
This should be an easy question.
I am trying to append a carriage return and line feed between two strings.
string s1 = "line 1 of text";
string s2 = "line 2 of text";
string s3 = s1 + "(line feed carrige return)" + s2;
I want there to be a carriage return and line feed between s1 and s2 so I can then use ReadLine() to read each line of the string. I tried using /r and /n between the strings, but then ReadLine() does not work. It reads the entire string as one line. This should be an easy question to answer. I looked around, but I could not find any examples.
Thanks in advance.