UtilTextFilesGetLine Method
Gets the specified line number from the source textfile.
Namespace: DevCase.Core.DataProcessing.TextFilesAssembly: 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
)
Public Shared Function GetLine (
sourceFilepath As String,
lineNumber As Integer,
textDirection As TextDirection,
Optional enc As Encoding = Nothing
) As String
Dim sourceFilepath As String
Dim lineNumber As Integer
Dim textDirection As TextDirection
Dim enc As Encoding
Dim returnValue As String
returnValue = UtilTextFiles.GetLine(sourceFilepath,
lineNumber, textDirection, enc)
public:
static String^ GetLine(
String^ sourceFilepath,
int lineNumber,
TextDirection textDirection,
Encoding^ enc = nullptr
)
static member GetLine :
sourceFilepath : string *
lineNumber : int *
textDirection : TextDirection *
?enc : Encoding
(* Defaults:
let _enc = defaultArg enc null
*)
-> string
No code example is currently available or this language may not be supported.
- 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.
String
A
String that contains the text of the obtained line.
This is a code example.
No code example is currently available or this language may not be supported.
Dim line As String = GetLine("C:\file.txt", 5, UtilTextFiles.TextDirection.Top, Encoding.Default)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
ArgumentOutOfRangeException
|
lineNumber
|
InvalidEnumArgumentException
|
textDirection
|