Click or drag to resize

FileHelperEngineTReadFileAsDT Method (String, Int32)

Note: This API is now obsolete.

Read the records of the file and fill a DataTable with them

Namespace:  FileHelpers
Assembly:  FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntax
[ObsoleteAttribute("You must use ReadFile(...).ToDataTable<T>() instead.")]
public DataTable ReadFileAsDT(
	string fileName,
	int maxRecords
)

Parameters

fileName
Type: SystemString
The file name.
maxRecords
Type: SystemInt32
The max number of records to read. Int32.MaxValue or -1 to read all records.

Return Value

Type: DataTable
The DataTable with the read records.

Implements

IFileHelperEngineTReadFileAsDT(String, Int32)
See Also