eg:
string str = "sentence 1";
str +="sentence 2";
Currrent output :
sentence 1 sentence 2
Desired Output :
sentence 1
sentence 2
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
FroglegPosted Feb 1, 2011, 1:52 PM
string str = "sentence 1\r\n";
str += "sentence 2";
2:
string str = "sentence 1";
str += Environment.NewLine;
str += "sentence 2";
Sam HobbsPosted Feb 1, 2011, 1:44 PM