Click or drag to resize
CommonEngineRawReadFirstLinesArray Method (String, Int32)
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(
	string file,
	int lines
)

Parameters

file
Type: SystemString
The file name
lines
Type: SystemInt32
The number of lines to read.

Return Value

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