currenlty wirting a script which reads a text file, splits the lines into the individual words and stores the word lengths in an array.
i beleive this may be achieveable with a bag of words but it may not be neccessary or the simpliest way to do so.
print the total number of words, the number of characters within the words but dosesnt count spaces but does incude punctuation and the lengths of the individual words.
Needs to be outputted like so.
This file has zz words with bb characters
* Word x has yy characters
any insight is much appreciated