Click or drag to resize

IFileHelperEngineTReadStreamAsDT Method (TextReader, Int32)

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

Namespace:  FileHelpers
Assembly:  FileHelpers (in FileHelpers.dll) Version: 3.2.6
Syntax
DataTable ReadStreamAsDT(
	TextReader reader,
	int maxRecords
)

Parameters

reader
Type: System.IOTextReader
The stream with the source records.
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.
See Also