I have been given a problem in which i have to write a program to find the letter frequency and the average word length of a piece of text. i've written the code to promt for and read in the text file. i'm finding it difficult however to make the jump to analyse the text i.e. to find the total number of words to start with. i think once i do this i'll be able to finish it but am having difficulties with this bit so any tips or suggestions would be greatly received.