Click or drag to resize

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
)

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