Hey,
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.
Thanks
saumya_kapila
0
Newbie Poster
Recommended Answers
Jump to PostWell, first of all you should study how to print a string into a file, life fprintf or fputs. Second, explain yourself: You mean you have a file like this:
pplea
Which becomes
apple
OR like this
rtyeppleasfg
and becomes
apple, leaf, fags, please
What do you mean by "find …
All 4 Replies
HeartBalloon
0
Light Poster
pseudorandom21
166
Practically a Posting Shark
saumya_kapila
0
Newbie Poster
HeartBalloon
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.