I am near complete of my program. The only element that does not produce is the word counter. I believe my code is incremented correctly and would like a second opinion. The output I receive for the word count is always 0, which it shouldn't be since I have a text file filled with lines of words. Is it only incrementing that is needed in this IF statement?
while (!inFile.eof())
{
getline(inFile, lineOfText, '\n');
nmbrOfLines++;