Hi Harshad,
Refer this link to achieve your goal-
searching-for-line-of-one-text-file-in-another-text-file[
^]
Or follow these steps-
1. read both files line by line
[Link][
^]
2. split each line on their white spaces
[Link][
^]
3. for both files, create a 2 dimensional array
[Link][
^]
4. compare the appropriate columns from your 2 dimensional arrays to each other and check if one contains the other
[Link][
^]
5. write something back to a 3rd file
[Link][
^]