CsvEngineCsvToDataTable Method (String, CsvOptions) |
Reads a CSV File and return their contents as
DataTable
Namespace:
FileHelpers
Assembly:
FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntaxpublic static DataTable CsvToDataTable(
string filename,
CsvOptions options
)
Public Shared Function CsvToDataTable (
filename As String,
options As CsvOptions
) As DataTable
Parameters
- filename
- Type: SystemString
The file to read. - options
- Type: FileHelpers.OptionsCsvOptions
The options used to create the record mapping class.
Return Value
Type:
DataTableThe contents of the file as a DataTable
See Also