Check anagrams from a file