Program for mining Chinese characters out of texts?

I’m reading Chinese texts and I would like to be able to scan them for all their words, rather than having to individually select each new word.
Is there a program that does this? Thanks in advance.