FixedWidthTextFile.ReadDataFrame<R>(String, Int32[], String, Boolean) Method

Reads a data frame from a file in fixed-width 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,
	int[] columnBreaks,
	string keyColumn,
	bool dropKeyColumn = true
)

Parameters

path  String
The path to the file.
columnBreaks  Int32[]
An integer array containing the zero-based indexes of the column breaks on each row.
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.

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

KeyNotFoundException

A column named keyColumn was not found in the file.

FileNotFoundException The specified file does not exist.

See Also