Perhaps you can use a map/dictionary (yes I like those
), create the 'keys' with the int values using a loop and store the 'A++' in the 'value' of the key.
As you read in the keys, add one to the value in a loop, something like (pseudo code) -
// creating the dictionary/map
Dict dict = new Dict();
// create the records:
For (i=0; i<36; i++) //amount of vals
dict.addRecord(key = 65+i.asString() , value = 0);
end
// reading and storing:
while(not end of file)
read in a char
dict.getAt(asAsciiNum(char)) += 1;
end while
hth.
PS. I'd write an example for you David but it would take me longer to set up my c# ide and study the api than it would to code it