Click or drag to resize

CommonEngineCsvToDataTable Method (String, String, Char, Boolean)

Reads a Csv File and return their contents as DataTable

Namespace:  FileHelpers
Assembly:  FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntax
public static DataTable CsvToDataTable(
	string filename,
	string classname,
	char delimiter,
	bool hasHeader
)

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
hasHeader
Type: SystemBoolean
Indicates if the file contains a header with the field names.

Return Value

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