Saving text files with TextWriter (C#)

//save string to a file.
//using System.IO;
string str = "my string";

using (TextWriter tw = new StreamWriter("c:\\file.txt", true))
{
tw.Write(str);
}