static void Main(string[] args) { GenerateTool gt = new GenerateTool(); gt.GenerateClass(); System.Diagnostics.Process.Start("notepad", Environment.CurrentDirectory + @"\output.txt"); }