If I have a data file that is structured like this:
word1 word2
word3 word4
word5 word6
I am using fscanf to read the words into an array of strings. How can I count the number of lines in the file? What I want is the number of word pairs in the file, not the number of words.