Just adding to the above problem..Suppose in the same code I have to add instead of deleting the strings matched..
Like strings that are in A but not in B and I want to add them using some string like "This is new addition" before adding those strings to file B and writing out in C.