Comparing two documents for all occurences of words
<p>I am currently working on a project, where I would need to compare two text documents, for all occurrences of words in document 1, to be repeated in document 2, irrespective of the position of the words. eg, if document 1, contains a passage with 10 occurrences of the word 'in', document 2 must contain 10 occurrences of 'in' too. No problem if the words are placed in different positions. How do I do that??..... thanks in advance.</p>
