Hey man
Sorry for the untidy question.
So I have single word strings in both files A and B and that too in a sorted manner.
Like A will have
bin
hye
B will have something like
bin
den
mig
So C shouldnt have all those things from A which are matched in B..
C should be
den
mig
as bin was matched from A.
This is no homework but for some work.Really will appreciate if you can provide the code for your solution:
"To solve a problem like this, I would generally read in the contents of file A into a hash, since you just want to use those words as a lookup. Then I would open files B and C, step through the contents of file B a line at a time, and, whenever the line of B contains a word in my hash, drop it on the floor -- otherwise, write that line to file C. I don't think that opening the file handles inside your loop is a good idea.
"