UtilTextFilesTrimEnd(String, String, Char, Encoding) Method
Trims the specified chars from the end of the lines of the source textfile,
then writes the result in the target 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 void TrimEnd(
string sourceFilepath,
string targetFilepath,
char[] trimChars = null,
Encoding enc = null
)
Public Shared Sub TrimEnd (
sourceFilepath As String,
targetFilepath As String,
Optional trimChars As Char() = Nothing,
Optional enc As Encoding = Nothing
)
Dim sourceFilepath As String
Dim targetFilepath As String
Dim trimChars As Char()
Dim enc As Encoding
UtilTextFiles.TrimEnd(sourceFilepath, targetFilepath,
trimChars, enc)
public:
static void TrimEnd(
String^ sourceFilepath,
String^ targetFilepath,
array<wchar_t>^ trimChars = nullptr,
Encoding^ enc = nullptr
)
static member TrimEnd :
sourceFilepath : string *
targetFilepath : string *
?trimChars : char[] *
?enc : Encoding
(* Defaults:
let _trimChars = defaultArg trimChars null
let _enc = defaultArg enc null
*)
-> unit
No code example is currently available or this language may not be supported.
Parameters
- sourceFilepath String
-
The source textfile path.
- targetFilepath String
-
The target textfile path.
- trimChars Char (Optional)
-
The characters to trim from lines.
- enc Encoding (Optional)
-
The file encoding used to read/write the textfile.
This is a code example.
No code example is currently available or this language may not be supported.
TrimEnd("C:\old file.txt", "C:\new 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.