C# write to TSV / Tab file

Using System.IO;

TextWriter writer = new StreamWriter(@"C:\test.tab");
writer.WriteLine(String.Join("\t", new[] { "abc", "def" }));
writer.WriteLine(String.Join("\t", new[] { "123", "456" }));
writer.Close();

Important thing to note is that it's "\t" not @"\t"