You are opening the same file twice. After openening/creating you have a stream which you can use for your writer.
Try this:
FileStream fs = new FileStream(@"C:\TestFile.txt", FileMode.Create);
TextWriter tw = new StreamWriter(fs);
tw.WriteLine("Test");
tw.Close();
fs.Close();