DelimitedTextFile.ReadVector Method

Definition

Namespace: Extreme.Data.Text
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0

Overload List

ReadVector<T>(Stream, DelimitedTextOptions) Reads a vector from a stream in delimited text format.
ReadVector<T>(String, DelimitedTextOptions) Reads a vector from a file in delimited text format.

DelimitedTextFile.ReadVector<T>(Stream, DelimitedTextOptions)

Reads a vector from a stream in delimited text format.
C#
public static Vector<T> ReadVector<T>(
	Stream stream,
	DelimitedTextOptions options = null
)

Parameters

stream  Stream
A stream.
options  DelimitedTextOptions  (Optional)
A DelimitedTextOptions object that specifies the options to use when reading the file.

Type Parameters

T
The element type of the vector.

Return Value

Vector<T>
The vector that was read from the stream pointed to by stream.

Remarks

The element type of the stored vector does not have to match the element type of the returned vector. However, casting values from this type to type T must succeed.

DelimitedTextFile.ReadVector<T>(String, DelimitedTextOptions)

Reads a vector from a file in delimited text format.
C#
public static Vector<T> ReadVector<T>(
	string path,
	DelimitedTextOptions options = null
)

Parameters

path  String
The path to the file.
options  DelimitedTextOptions  (Optional)
A DelimitedTextOptions object that specifies the options to use when reading the file.

Type Parameters

T
The element type of the vector.

Return Value

Vector<T>
The data frame that was read from the file pointed to by path.

Remarks

The element type of the stored vector does not have to match the element type of the returned vector. However, casting values from this type to type T must succeed.

Exceptions

FileNotFoundException The specified file does not exist.

See Also