I'm quite newbie in programming and imagine that this question will problably extremely easy to solve, but I can't get it, so any help will be very welcome.
What i'm trying to do is comparing two text files (a dictionary and a book) and create different arrays with all the matches between both, so to say, i will end up having an array with x "democracy" terms, another with y "state" terms, and so on.
Up to now i've been able to create a counter that counts all the matches between both so i have a counter of total matches, but I can't find the way to split this into different groups?.