UtilTextFilesSplit(String, Char, StringSplitOptions, Encoding) Method
Splits the source textfile by the specified characters.
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> Split(
string sourceFilepath,
char[] characters,
StringSplitOptions splitOptions = StringSplitOptions.None,
Encoding enc = null
)
Public Shared Function Split (
sourceFilepath As String,
characters As Char(),
Optional splitOptions As StringSplitOptions = StringSplitOptions.None,
Optional enc As Encoding = Nothing
) As IEnumerable(Of String)
Dim sourceFilepath As String
Dim characters As Char()
Dim splitOptions As StringSplitOptions
Dim enc As Encoding
Dim returnValue As IEnumerable(Of String)
returnValue = UtilTextFiles.Split(sourceFilepath,
characters, splitOptions, enc)
public:
static IEnumerable<String^>^ Split(
String^ sourceFilepath,
array<wchar_t>^ characters,
StringSplitOptions splitOptions = StringSplitOptions::None,
Encoding^ enc = nullptr
)
static member Split :
sourceFilepath : string *
characters : char[] *
?splitOptions : StringSplitOptions *
?enc : Encoding
(* Defaults:
let _splitOptions = defaultArg splitOptions StringSplitOptions.None
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.
- characters Char
-
The characters that delimits the split.
- splitOptions StringSplitOptions (Optional)
-
The split behavior option.
- enc Encoding (Optional)
-
The file encoding used to read the textfile.
IEnumerableString
An
IEnumerableT that contains the splitted 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) = Split("C:\file.txt", {" "c}, StringSplitOptions.RemoveEmptyEntries, 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.