StringBuilder sb = new StringBuilder(); sb.Append(\"Line 1\"); //insert new line character //insert tab character sb.Append(\"Line 2\"); using (StreamWriter sw = new
sb.AppendLine();
or
sb.Append( "\n" );
And
sb.Append( "\t" );