CSVOpenTable Method (Stream, Boolean, 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,
bool convertNumericData
)
Public Shared Function OpenTable (
fileData As Stream,
firstRowFieldNames As Boolean,
convertNumericData As Boolean
) As DataTable
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. - convertNumericData
- Type: SystemBoolean
Specifies whether or not to attempt to convert values that look numeric to numeric values.
Note that numeric conversion will strip leading zeros (e.g. a zip code of "05555" gets imported as "5555").
Return Value
Type:
DataTableA DataTable object created from the imported CSV file.
See Also