For this assignment we are required to write a program that reads from a text file and says how many alphabetic characters and non alphabetic characters there are in the text file. This whole process has me confused but I was able to work through it to get to the point where I can read the file and examine each character but for some reason I always end of with 0 for both values.
Below is the changes I made to troubleshoot this.
You can see I added 2 cout statements to get a idea of the output
from that I came to the conclusion it was not reading the line correctly.
PS. Just noticed your loop to read the 2nd line and after doesn't work.
You should be able to google a solution for that.