I have to do a program that counts different types of characters in an ordinary text file. We are supposed to have the text file display in the output and I can't even get to that point. Here is what I have so far:
No, it's not a programming thing, it's a forum thing. http://www.cplusplus.com/articles/firedraco1/
Anyway, do you actually want to "increment" a character? Because that's exactly what you're doing, and it will change the character. In addition, you appear to be opening the file twice. That's really not going to go over well.
I need to have it output how many characters are in the text, including whitespace, and I need to have the actual text within the file display in the output.