using System; using System.IO; public class MainClass { static void Main(string[] args) { StreamWriter MyStreamWriter = new StreamWriter(@"c:\Testing.txt"); string MyString = "Hello World"; MyStreamWriter.Write(MyString); MyStreamWriter.Close(); } }