Monthly Archives: March 2013

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"

XHTML 1.0 Trans DocType

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <link type="text/css" rel="stylesheet" href="" />
    <script type="text/javascript" src=""></script>
  </head>
  <body>
  </body>
</html>