DelimitedTextFile.ReadDataFrame<R>(String, String, Boolean, DelimitedTextOptions) Method

Reads a data frame from a file in delimited text format.

Definition

Namespace: Extreme.Data.Text
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0
C#
public static DataFrame<R, string> ReadDataFrame<R>(
	string path,
	string keyColumn,
	bool dropKeyColumn = true,
	DelimitedTextOptions options = null
)

Parameters

path  String
The path to the file.
keyColumn  String
The name of the column that contains the column keys.
dropKeyColumn  Boolean  (Optional)
If true, the key column is not included in the returned data frame.
options  DelimitedTextOptions  (Optional)
A DelimitedTextOptions object that specifies the options to use when reading the file.

Type Parameters

R
The element type of the key column.

Return Value

DataFrame<R, String>
The data frame that was read from the file pointed to by path.

Exceptions

FileNotFoundException The specified file does not exist.
KeyNotFoundException

A column named keyColumn was not found in the file.

See Also