public static void WriteToFile(string absOutFilePathWithOutExtensionName, OutFile ft) { using (StreamWriter file = new StreamWriter(absOutFilePathWithOutExtensionName + "." + ft.Extension())) { ft.Run(file); } }