I have a fairly simple assignment where I have to read a file, and print how many times each character occurs in an output file - I know how to do that, and I have that part done.
What I need to know is how to count how many times it reaches the end of a line, and moves to the next one, stopping this when it reaches the end of file.



LinkBack URL
About LinkBacks



. I was getting hung up on the fact that the professor mentioned that lines could have any number of characters up to 80, one may have 10 and another may have 79. Its amazing at the end of last semester I had a algorithm that had 6 for loops nested along with lots of if's using stuff from different classes (dirty I know, but it was the quickest method I could find
), and I had no problem looking at it and understanding it, yet this simple review stuff is throwing me off. I guess thats why its review.