UtilTextFilesSplit(String, String, StringSplitOptions, Encoding) Method
Splits the source textfile by the specified string.
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,
string str,
StringSplitOptions splitOptions = StringSplitOptions.None,
Encoding enc = null
)
Public Shared Function Split (
sourceFilepath As String,
str As String,
Optional splitOptions As StringSplitOptions = StringSplitOptions.None,
Optional enc As Encoding = Nothing
) As IEnumerable(Of String)
Dim sourceFilepath As String
Dim str As String
Dim splitOptions As StringSplitOptions
Dim enc As Encoding
Dim returnValue As IEnumerable(Of String)
returnValue = UtilTextFiles.Split(sourceFilepath,
str, splitOptions, enc)
public:
static IEnumerable<String^>^ Split(
String^ sourceFilepath,
String^ str,
StringSplitOptions splitOptions = StringSplitOptions::None,
Encoding^ enc = nullptr
)
static member Split :
sourceFilepath : string *
str : string *
?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.
- str String
-
The string 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", "Hello World", 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.