Tools for calculating the Shannon entropy of a text file.  Here we are considering text files to be streams of letters, and look at sets of n consecutive letters.  (We are not considering the text file to be a stream of English words.)