UtilTextFilesTrim(String, String, Char, Encoding) Method

Trims the specified chars in the lines of the source textfile, then writes the result in the target textfile.

Definition

Namespace: DevCase.Core.DataProcessing.TextFiles
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void Trim(
	string sourceFilepath,
	string targetFilepath,
	char[] trimChars = null,
	Encoding enc = null
)

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.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also