text file sorting
Posted on 2003-03-04
I need some help on this,
i need to read in text from a file called test.txt sort this info alphabetically and print the result out to report.txt
The input file would look like this;
when will we go to
the aid of the party
The output file should look like this;
If a word appears twice it should only be printed once.
The problem is that i cannot use vectors, therefore it must be done using either binary trees or singly linked lists.
This is very important thanks in advance!!