/Character-Letter-Counter

Reads a text file and sums up each individual letter. Outputs the sum of each letter sorted by highest count. This program will report which letter is used most commonly and which is used the least.

Primary LanguageC#GNU General Public License v3.0GPL-3.0

Character-Letter-Counter

Reads a text file and sums up each individual letter. Outputs the sum of each letter sorted by highest count. This program will report which letter is used most commonly and which is used the least.

Example Usage on the United States Decleration of Independence. We can see that 'e' is the most frequent letter in the decleration:

CharacterCounter.exe DeclarationOfIndependence.txt
Sorted by letter:

a - 483
b - 95
c - 186
d - 254
e - 867
f - 183
g - 130
h - 353
i - 454
j - 16
k - 14
l - 229
m - 146
n - 488
o - 519
p - 138
q - 6
r - 426
s - 479
t - 649
u - 212
v - 74
w - 97
x - 9
y - 81
z - 4

Sorted by count:

e - 867
t - 649
o - 519
n - 488
a - 483
s - 479
i - 454
r - 426
h - 353
d - 254
l - 229
u - 212
c - 186
f - 183
m - 146
p - 138
g - 130
w - 97
b - 95
y - 81
v - 74
j - 16
k - 14
x - 9
q - 6
z - 4

Total Time Processing: 00:00:00.0668184