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