I\'m writing a spellchecking program that will compare a user\'s text file with a dictionary to see if the words they entered are in the dictionary. If not, an error message
The usual way of solving this is to first read the dictionary and build a hash table. You'd then read one word at a time from the input file and flag an error if the word doesn't exist on the hash table.