CsvReader ReadFile Method CleanCode C# Libraries v1.2.03 API
Reads a CSV file into a OnlineDataTable.

Namespace: CleanCode.CsvProcessing
Assembly: CleanCode.CsvProcessing (in CleanCode.CsvProcessing.dll) Version: (1.2.03)

public DataTable ReadFile(
	string filePath

Return Value

CSV contents stored as a DataTable.

The first record must be column headers. They may either be names only or names and types in the form name:type (e.g. "Id:System.Int32"). If types are not provided the DataTable will set all columns to System.String.
See Also