>Given a text file as input, sort the lines and store in the specified
If this is not homework, consider using the UNIX sort utility.
There are ports of this program to Windows. The source code to
the utility is available with various distributions of FreeBSD,
Linux, OpenBSD, etc. Oh, and the versions of the utility I have
seen do not assume that the data can fit in memory.
>output file. The sorting need not make any differenciation with
>regards to the characters (whether it is alpha / numeric /
>alphanumeric / special). It can compare them using the ASCII value.
>regards to the characters (whether it is alpha / numeric /
>alphanumeric / special). It can compare them using the ASCII value.
There are ports of this program to Windows. The source code to
the utility is available with various distributions of FreeBSD,
Linux, OpenBSD, etc. Oh, and the versions of the utility I have
seen do not assume that the data can fit in memory.