I have a large text file that looks like this where there is one row with an A at the beginning and one C at the end and an x number of B's in between:
A
B
B
B
C
What's the best way to get a number count for the number of times A, B, or C appear? All of these rows have more data but this is what I'm trying to achieve.
Do I have to read in the whole file or is reading it one line at a time the best?