[ Back to the overview Matrix ]

Test case : Sort 2

Write an application that opens an text file (preferably specified by command line), sorts its lines, and saves it to an file named sorted.txt .
This sould be an console application.
You can use any sorting algorithm you wish, even buildin. Priority: Write as little code as possible. Speed is irrelevant.

You don't have to check for any invalid input.

What is tested: Text file handling, sorting libraries or methods.

Contributed by Andreas Koch, mail at kochandreas.com