StringBuilder sb = new StringBuilder();
sb.Append(\"Line 1\");
//insert new line character
//insert tab character
sb.Append(\"Line 2\");
using (StreamWriter sw = new
It depends on if you mean '\n' (linefeed) or '\r\n' (carriage return + linefeed). The former is not the Windows default and will not show properly in some text editors (like Notepad).