FixedWidthTextFile.Open Method

Definition

Namespace: Numerics.NET.Data.Text
Assembly: Numerics.NET.Data (in Numerics.NET.Data.dll) Version: 4.0.1

Overload List

Open(Stream, FixedWidthTextOptions) Opens a data stream in fixed width format for reading.
Open(Stream, Int32[]) Opens a data stream in fixed width format for reading.
Open(String, FixedWidthTextOptions) Opens a data file in fixed width format for reading.
Open(String, Int32[]) Opens a data file in fixed width format for reading.

Open(Stream, FixedWidthTextOptions)

Opens a data stream in fixed width format for reading.
C#
public static FixedWidthTextStream Open(
	Stream stream,
	FixedWidthTextOptions options
)

Parameters

stream  Stream
The stream to read the data from.
options  FixedWidthTextOptions
A FixedWidthTextOptions object that specifies the options to use when reading the file.

Return Value

FixedWidthTextStream
A FixedWidthTextOptions.

Open(Stream, Int32[])

Opens a data stream in fixed width format for reading.
C#
public static FixedWidthTextStream Open(
	Stream stream,
	int[] columnBreaks
)

Parameters

stream  Stream
The stream to read the data from.
columnBreaks  Int32[]
An integer array containing the zero-based indexes of the column breaks on each row.

Return Value

FixedWidthTextStream
A FixedWidthTextOptions.

Open(String, FixedWidthTextOptions)

Opens a data file in fixed width format for reading.
C#
public static FixedWidthTextStream Open(
	string path,
	FixedWidthTextOptions options
)

Parameters

path  String
The path to the file.
options  FixedWidthTextOptions
A FixedWidthTextOptions object that specifies the options to use when reading the file.

Return Value

FixedWidthTextStream
A FixedWidthTextOptions.

Open(String, Int32[])

Opens a data file in fixed width format for reading.
C#
public static FixedWidthTextStream Open(
	string path,
	int[] columnBreaks
)

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.

Return Value

FixedWidthTextStream
A FixedWidthTextOptions.

See Also