예제 #1
0
 public void SaveFile(string _outFile, HTMLTable _saveData)
 {
     StreamWriter _fileSaver = new StreamWriter(@"E:/Lab02/"+_outFile);
     _fileSaver.WriteLine(@"<html>");
     _fileSaver.WriteLine(@"<table>");
     _fileSaver.WriteLine(_saveData.Header);
     _fileSaver.WriteLine(_saveData.Footer);
     foreach (var _line in _saveData.Content)
     {
         _fileSaver.WriteLine(_line);
     }
     _fileSaver.WriteLine(@"</table>");
     _fileSaver.WriteLine(@"</html>");
     _fileSaver.Close();
 }
예제 #2
0
 public void TableGenerator(List<string> textList, string outFile)
 {
     HTMLTable _htmlTable = new HTMLTable(textList);
     SaveFile(outFile, _htmlTable);
 }