FileStream fs = new FileStream("test.log", FileMode.Create);
StreamWriter sw = new StreamWriter(fs, new UTF8Encoding(false));

sw.WriteLine("test");

sw.Close();
fs.Close();