Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: tricky problem with a code
|
Posted: Jun 26, 2003 12:06 PM
|
|
Maybe you are counting the '\r' part of a '\r\n' sequence at the end of the line?
Also, along the lines of the last suggestion, you could also collect the results for each category and show not just the count, but also the characters that are comprise it. That is your output might be something like:
There were 3 lowercase characters: 'a', 's', 'd' There were 3 uppercase characters: 'A', 'S', 'D' ...
|
|