Click or drag to resize

ExcelHelperLoadDataTableFromCSV Method

Load a DataTable from a CSV file. If no separator is specified, ',' or ';' is detected from the first line. If noHeader is true, column names are automatic.

Namespace: Seal.Helpers
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.0.1.0+a44cd3a7f03c2bf3cdbd971a878c679e40bed08a
Syntax
C#
public static DataTable LoadDataTableFromCSV(
	string csvPath,
	char? separator,
	Encoding encoding,
	bool noHeader = false
)

Parameters

csvPath  String
 
separator  NullableChar
 
encoding  Encoding
 
noHeader  Boolean  (Optional)
 

Return Value

DataTable
See Also