How to count letter from input text file?I've done for counting letter from textbox:
Text = txtText.Text
txtText.SetFocus
For I = 1 To Len(Text)
Aschii = Asc(UCase$(Mid$(Text, I, 1)))
Select Case Aschii
Case vbKeyA To vbKeyZ
LetterCount(Aschii) = LetterCount(Aschii) + 1
Percent(Aschii) = LetterCount(Aschii) / Len(Text) * 100
Case Else
End Select
Next I
For I = vbKeyA To vbKeyZ
lstResult.AddItem Chr$(I) & vbTab & LetterCount(I) & vbTab & Percent(I)
Next I
============================================
Now my question is how to count letter of occurence from input text file? Anyone can help me on this?thanks~