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