UtilTextFilesTrimEnd(String, Char, Encoding) Method
Trims the specified chars from the end of the lines of the source textfile.
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> TrimEnd(
string sourceFilepath,
char[] trimChars = null,
Encoding enc = null
)
Public Shared Function TrimEnd (
sourceFilepath As String,
Optional trimChars As Char() = Nothing,
Optional enc As Encoding = Nothing
) As IEnumerable(Of String)
Dim sourceFilepath As String
Dim trimChars As Char()
Dim enc As Encoding
Dim returnValue As IEnumerable(Of String)
returnValue = UtilTextFiles.TrimEnd(sourceFilepath,
trimChars, enc)
public:
static IEnumerable<String^>^ TrimEnd(
String^ sourceFilepath,
array<wchar_t>^ trimChars = nullptr,
Encoding^ enc = nullptr
)
static member TrimEnd :
sourceFilepath : string *
?trimChars : char[] *
?enc : Encoding
(* Defaults:
let _trimChars = defaultArg trimChars null
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.
- trimChars Char (Optional)
-
The characters to trim from lines.
- enc Encoding (Optional)
-
The file encoding used to read the textfile.
IEnumerableString
An
IEnumerableT that contains the trimmed 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) = TrimEnd("C:\file.txt", {" "c, ControlChars.NullChar}, 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.