StringBuilder sb = new StringBuilder(); sb.Append(\"Line 1\"); //insert new line character //insert tab character sb.Append(\"Line 2\"); using (StreamWriter sw = new
Use:
sb.AppendLine(); sb.Append("\t");
for better portability. Environment.NewLine may not necessarily be \n; Windows uses \r\n, for example.
\n
\r\n