I have to write a code,which reads a file and finds anagrams in it.The output is a set of anagrams(the output I am getting from this code) again to be printed in a text file.
Can you please tell me how can I delete the repeated anagram sets from the output of your code and also how to write the output to a file.
If I am trying to write output to a file it is printing some random characters.:(
Also it would be a great help if you could xplain your logic to me.