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.