I would like to check if every word in a text file exists in any "LINES" of another large dictionary text file.

Every way I have tried this has failed, or worked only briefly.

How can I do without a million nested loops?