>output file. The sorting need not make any differenciation withIf this is not homework, consider using the UNIX sort utility.
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.