Пример #1
0
 /// <summary>Simply dumps the DataTable contents to a delimited file. Only allows to set the delimiter.</summary>
 /// <param name="dt">The source Data Table</param>
 /// <param name="filename">The destination file.</param>
 /// <param name="delimiter">The delimiter used to write the file</param>
 public static void DataTableToCsv(DataTable dt, string filename, char delimiter)
 {
     CsvEngine.DataTableToCsv(dt, filename, new CsvOptions("Tempo", delimiter, dt.Columns.Count));
 }
Пример #2
0
 /// <summary>Simply dumps the DataTable contents to a delimited file. Only allows to set the delimiter.</summary>
 /// <param name="dt">The source Data Table</param>
 /// <param name="filename">The destination file.</param>
 /// <param name="options">The options used to write the file</param>
 public static void DataTableToCsv(DataTable dt, string filename, CsvOptions options)
 {
     CsvEngine.DataTableToCsv(dt, filename, options);
 }
Пример #3
0
 /// <summary>Simply dumps the DataTable contents to a delimited file using a ',' as delimiter.</summary>
 /// <param name="dt">The source Data Table</param>
 /// <param name="filename">The destination file.</param>
 public static void DataTableToCsv(DataTable dt, string filename)
 {
     CsvEngine.DataTableToCsv(dt, filename);
 }