I need to create a C program that does a spell check on words in a user created data file which I created and called "data.txt". It will do this by checking to see if the word in the data text file is not a match in a dictionary file of accepted english language words called "words.txt".

If the word in the data file does not match any word in the dictionary file, the program should print out the incorrectly spelled word from the data file as well as the line number of that word in the data file. For the case where a string of text in the data file is something such as '1980', the program should not check the spelling of those types of strings which are numeric. It should only perform the spell check for alphanumeric data and it should check every word of the dictionary file for a match with the data file word until either a match is found or it reaches the end of file.

I have a vague idea of how to do this below in pseudo code:

Code:
open files
while data.txt and words.txt are not EOF { 
    // check the word in the data file with every word in the dictionary   
    file
   if (word[data.txt] != word[words.txt]) {  
      print the incorrectly spelled word
      print the line number of that word
   }
}
I have a vague idea printed here but I am having trouble getting it into functional C code. Any advice or suggestions would be greatly appreciated.

P.S. I have included the data file that I created called "data.txt" as a reference. I can't include the dictionary file as an attachment because it is WAY too big but I can tell you that the dictionary file displays only one word on a line and it has 45,427 words and 45,427 lines in the file.