Hi, I am trying to create a little program that, imports a .txt file to VB.Net console, then puts each word into an array, then takes each word and tests each char of each word to calculate a value based on what char is in each word. I have got the .txt import part working and the words are in an array, the bit i'm stuck on is how do i then run through each word?
What i have been trying is to create a dictionary of String, Int, and then for/next through a word at a time and if say for example the first letter is a char a, then i would like to count up the corresponding item.key. So the string is scanned one char at a time and the value from each letter is derived from the keypair value for that letter, so i can change the value of the letter to what i want.
I have searched everywhere for any information on how to do this or even if i have the right idea doing it this way in the first place, any help or pointers to how this can be done would greatly be appreciated as i'm totally stumped.
What i have been trying is to create a dictionary of String, Int, and then for/next through a word at a time and if say for example the first letter is a char a, then i would like to count up the corresponding item.key. So the string is scanned one char at a time and the value from each letter is derived from the keypair value for that letter, so i can change the value of the letter to what i want.
I have searched everywhere for any information on how to do this or even if i have the right idea doing it this way in the first place, any help or pointers to how this can be done would greatly be appreciated as i'm totally stumped.