CommonEngineRawReadFirstLinesArray Method (String, Int32, Encoding) |
Shortcut method to read the first n lines of a text file as array.
Namespace: FileHelpersAssembly: FileHelpers (in FileHelpers.dll) Version: 3.1.5
Syntax public static string[] RawReadFirstLinesArray(
string file,
int lines,
Encoding encoding
)
Public Shared Function RawReadFirstLinesArray (
file As String,
lines As Integer,
encoding As Encoding
) As String()
Parameters
- file
- Type: SystemString
The file name - lines
- Type: SystemInt32
The number of lines to read. - encoding
- Type: System.TextEncoding
The Encoding used to read the file
Return Value
Type:
StringThe first n lines of the file.
See Also