UtilTextFilesTakeLines(String, Int32, TextDirection, Encoding) Method
Takes the specified amount of lines 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 IEnumerable<string> TakeLines(
string sourceFilepath,
int amountOfLines,
TextDirection textDirection,
Encoding enc = null
)
Public Shared Function TakeLines (
sourceFilepath As String,
amountOfLines As Integer,
textDirection As TextDirection,
Optional enc As Encoding = Nothing
) As IEnumerable(Of String)
Dim sourceFilepath As String
Dim amountOfLines As Integer
Dim textDirection As TextDirection
Dim enc As Encoding
Dim returnValue As IEnumerable(Of String)
returnValue = UtilTextFiles.TakeLines(sourceFilepath,
amountOfLines, textDirection, enc)
public:
static IEnumerable<String^>^ TakeLines(
String^ sourceFilepath,
int amountOfLines,
TextDirection textDirection,
Encoding^ enc = nullptr
)
static member TakeLines :
sourceFilepath : string *
amountOfLines : int *
textDirection : TextDirection *
?enc : Encoding
(* Defaults:
let _enc = defaultArg enc null
*)
-> IEnumerable<string>
No code example is currently available or this language may not be supported.
- sourceFilepath String
-
The source textfile path.
- amountOfLines Int32
-
The amount of lines to take.
- textDirection TextDirection
-
The text direction.
- enc Encoding (Optional)
-
The file encoding used to read the textfile.
IEnumerableString
An
IEnumerableT that contains the taken lines.
This is a code example.
No code example is currently available or this language may not be supported.
Dim lines As IEnumerable(Of String) = TakeLines("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
|
amountOfLines
|
InvalidEnumArgumentException
|
textDirection
|