public void ToFile(string completeFilePath, bool append = true) { TextOutputManager thisOutputManager = new TextOutputManager(completeFilePath, append); thisOutputManager.WriteLine(LineOut(headers)); foreach (List <T> thisData in data) { thisOutputManager.WriteLine(LineOut(thisData)); } thisOutputManager.Close(); }
} // EXPLICTLY FORBID USE OF THE DEFAULT CONSTRUCTOR public output(HtmlLogSystem parent, string title, TextOutputManager newOutputWriter, LoggingLevel newLevel, LoggingMode newMode) { OutputWebInterface.Title = title; OutputWebInterface.CssStyles = parent.HtmlStyle; OutputWriter = newOutputWriter; OutputLevel = newLevel; OutputMode = newMode; OutputWriter.WriteLine(OutputWebInterface.HtmlHeader); }