how to go through the text file and save every word in a dictionary with the place where that word appears. a word may appear more than once.
I opened the text file. and declared a new dictionary. I don't know how to go through the file and fill the dictionary.