hi im trying to create a program that counts words from a .txt file and any time it encounters a new word it starts counting how many of that word are in the file as well but i can't seem to find a way to do this.
Read word. Check if word is in map. If not, create new entry in map (key = new word) with value zero. If it is in the map, increment the entry with key == word by one.
thank you i appreciate your help i think this will work i just need to read each line of the .txt file and put the word on that line in the map. i think.