Click or drag to resize

CommonEngineCsvToDataTable Method (String, 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
Syntax
public static DataTable CsvToDataTable(
	string filename,
	string classname,
	char delimiter
)

Parameters

filename
Type: SystemString
The file to read.
classname
Type: SystemString
The name of the record class
delimiter
Type: SystemChar
The delimiter for each field

Return Value

Type: DataTable
The contents of the file as a DataTable
See Also