using (System.IO.StreamWriter sw = new System.IO.StreamWriter(fileName)) { sw.Write(outputText); }
StreamWriter
Write