UtilTextFilesSplitByLines Method
Splits the source textfile by the specified amount of lines.
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<IEnumerable<string>> SplitByLines(
string sourceFilepath,
int amountOfLines,
Encoding enc = null
)
Public Shared Function SplitByLines (
sourceFilepath As String,
amountOfLines As Integer,
Optional enc As Encoding = Nothing
) As IEnumerable(Of IEnumerable(Of String))
Dim sourceFilepath As String
Dim amountOfLines As Integer
Dim enc As Encoding
Dim returnValue As IEnumerable(Of IEnumerable(Of String))
returnValue = UtilTextFiles.SplitByLines(sourceFilepath,
amountOfLines, enc)
public:
static IEnumerable<IEnumerable<String^>^>^ SplitByLines(
String^ sourceFilepath,
int amountOfLines,
Encoding^ enc = nullptr
)
static member SplitByLines :
sourceFilepath : string *
amountOfLines : int *
?enc : Encoding
(* Defaults:
let _enc = defaultArg enc null
*)
-> IEnumerable<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.
- enc Encoding (Optional)
-
The file encoding used to read the textfile.
IEnumerableIEnumerableString
An
IEnumerableT that contains the splitted parts.
This is a code example.
No code example is currently available or this language may not be supported.
Dim parts As IEnumerable(Of IEnumerable(Of String)) = SplitByLines("C:\file.txt", 2, 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.