I can't see why this program shouldn't work. The only thing I would change is:
while(!dictionary.eof()) {
getline(dictionary, current_word); // stores the current line
Change these to lines to:
while(getline(dictionary, current_word)) {
eof() is never a good function to use IMO.
Last edited by niek_e; Jun 30th, 2008 at 3:56 am.