CommonEngineCsvToDataTable Method (String, Char) |
Reads a CSV File and return their contents as DataTable (The file
must have the field names in the first row)
Namespace:
FileHelpers
Assembly:
FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntaxpublic static DataTable CsvToDataTable(
string filename,
char delimiter
)
Public Shared Function CsvToDataTable (
filename As String,
delimiter As Char
) As DataTable
Parameters
- filename
- Type: SystemString
The file to read. - delimiter
- Type: SystemChar
The delimiter for each field
Return Value
Type:
DataTableThe contents of the file as a DataTable
See Also