UtilTextFilesSort(String, String, ListSortDirection, Encoding) Method
Sorts 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 Sort(
string sourceFilepath,
string targetFilepath,
ListSortDirection sortDirection,
Encoding enc = null
)
Public Shared Sub Sort (
sourceFilepath As String,
targetFilepath As String,
sortDirection As ListSortDirection,
Optional enc As Encoding = Nothing
)
Dim sourceFilepath As String
Dim targetFilepath As String
Dim sortDirection As ListSortDirection
Dim enc As Encoding
UtilTextFiles.Sort(sourceFilepath, targetFilepath,
sortDirection, enc)
public:
static void Sort(
String^ sourceFilepath,
String^ targetFilepath,
ListSortDirection sortDirection,
Encoding^ enc = nullptr
)
static member Sort :
sourceFilepath : string *
targetFilepath : string *
sortDirection : ListSortDirection *
?enc : Encoding
(* Defaults:
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.
- sortDirection ListSortDirection
-
The sorting direction.
- 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.
Sort("C:\old file.txt", "C:\new file.txt", ListSortDirection.Ascending, 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.