Click button to edit
Sorting: Sort Big File without Record Class 2
Shows how to sort a big file without a record class
Implements External Sorting (wikipedia)
You can use any sort you want, for example sorting by line length
SortingWithoutRecord.cs
var sorter = new BigFileSorter(
(x, y) => {
// You can add here any custom function
return x.Length.CompareTo(y.Length);
});
sorter.Sort("unsorted.txt", "sorted.txt");