Hi guys. I know how to create a text file and append text to that text file. But does anyone know how to insert tabs or newlines to a text file? I'm using the backslash character \ but it's still not recognizing it.

if (!File.Exists(@"test.txt"))
{
using (StreamWriter sw = File.CreateText(@"test.txt"))
{
sw.WriteLine("Start text\tHello\nhi\n");
}

}

I want this:

Start text Hello
hi


but i'm getting this: Start text\tHello\nhi\n


jennifer