CsvEngineDataTableToCsv Method (DataTable, String, CsvOptions) |
Simply dumps the DataTable contents to a delimited file. Only
allows to set the delimiter.
Namespace:
FileHelpers
Assembly:
FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntax public static void DataTableToCsv(
DataTable dt,
string filename,
CsvOptions options
)
Public Shared Sub DataTableToCsv (
dt As DataTable,
filename As String,
options As CsvOptions
)
Parameters
- dt
- Type: System.DataDataTable
The source Data Table - filename
- Type: SystemString
The destination file. - options
- Type: FileHelpers.OptionsCsvOptions
The options used to write the file
See Also