CommonEngineRawReadFirstLinesArray Method (String, Int32) |
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
)
Public Shared Function RawReadFirstLinesArray (
file As String,
lines As Integer
) As String()
Parameters
- file
- Type: SystemString
The file name - lines
- Type: SystemInt32
The number of lines to read.
Return Value
Type:
StringThe first n lines of the file.
See Also