Click or drag to resize
CommonEngineRawReadFirstLinesArray Method (TextReader, Int32, Encoding)
Shortcut method to read the first n lines of a text file as array.

Namespace: FileHelpers
Assembly: FileHelpers (in FileHelpers.dll) Version: 3.1.5
Syntax
public static string[] RawReadFirstLinesArray(
	TextReader stream,
	int lines,
	Encoding encoding
)

Parameters

stream
Type: System.IOTextReader
The text reader name
lines
Type: SystemInt32
The number of lines to read.
encoding
Type: System.TextEncoding
The Encoding used to read the file

Return Value

Type: String
The first n lines of the file.
See Also