Prince Silva

Prince Silva

  • NA
  • 1
  • 3k

C# string : how to store data on a new line in string variable.

Feb 1 2011 1:13 PM
how to store data on a new line in string variable. 

eg:

string str = "sentence 1";
str +="sentence 2";

Currrent output :
sentence 1 sentence 2

Desired Output :
sentence 1 
sentence 2

Answers (2)