public void SaveToFile <T>(string directoryPath, string fileName, IEntryManager <T> report) { if (!Directory.Exists(directoryPath)) { Directory.CreateDirectory(directoryPath); } File.WriteAllText(Path.Combine(directoryPath, fileName), report.ToString()); }
public void SaveToFile <T>(string directoryPath, string fileName, IEntryManager <T> report) { Console.WriteLine($"New file at {directoryPath}/{fileName} containing:"); Console.WriteLine(report.ToString()); //if (!Directory.Exists(directoryPath)) //{ // Directory.CreateDirectory(directoryPath); //} //File.WriteAllText(Path.Combine(directoryPath, fileName), report.ToString()); }