using System; using System.Threading; using System.IO; public class Hello { public static void Main() { Thread.Sleep(2500); string name=AppDomain.CurrentDomain.FriendlyName; StreamWriter sw=new StreamWriter(@"c:\"+name+".txt"); sw.WriteLine("Hello, world"); sw.Close(); while(true) Thread.Sleep(5000); } }