Use the ASCII table to compare the values of each char individually. Add one to a counter for every time the chars are not the same value. Here is a very quick idea of what I'm talking about to get your mind thinking. In your program, you are going to have to use a file stream to compare the chars of each string individually, and a for loop. anup30 summarized it well above.