UtilTextFilesGetLine Method

Gets the specified line number from the source textfile.

Definition

Namespace: DevCase.Core.DataProcessing.TextFiles
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string GetLine(
	string sourceFilepath,
	int lineNumber,
	TextDirection textDirection,
	Encoding enc = null
)

Parameters

sourceFilepath  String
The source textfile path.
lineNumber  Int32
The index of the line to get.
textDirection  TextDirection
The text direction.
enc  Encoding  (Optional)
The file encoding used to read the textfile.

Return Value

String
A String that contains the text of the obtained line.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Exceptions

ArgumentOutOfRangeException lineNumber
InvalidEnumArgumentException textDirection

See Also