How to find 10 most common words in a text
<p>So I have <em>arbitrary text</em> in a txt file and I need to find the <em>10 most common words</em>. How should I do that? I think I should read sentences from dot to a dot and put it to an array, but don't really know how to do that. </p>