Click or drag to resize

CSVOpenTable Method (Stream, Boolean)

Opens a table from a stream version of a CSV file.

Namespace:  NetQuarry.Data
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static DataTable OpenTable(
	Stream fileData,
	bool firstRowFieldNames
)

Parameters

fileData
Type: System.IOStream
The stream that contains the CSV value data.
firstRowFieldNames
Type: SystemBoolean
True if the first row contains the field names, else false.

Return Value

Type: DataTable
A DataTable object created from the imported CSV file.
Remarks
Note that this overload will automatically attempt numeric conversion will strip leading zeros (e.g. a zip code of "05555" gets imported as "5555"). If removal of leading zeros is undersirable, use the OpenTable(Stream, bool, bool) overload specifying that no numeric data conversion should be performed.
See Also