Click here to Skip to main content
14,238,160 members
Rate this:
Please Sign up or sign in to vote.
See more: (untagged)
Hi,

Currently i have done code for comparing two text files(End to end)Read all lines one by one.

But i want to compare only particular values in both the text files and it has to provide the difference result. Please see the example below. I need the result same like below example.


File A:
-------
abcdefghi
jklmn

10.1.1.1
10.1.1.2
10.1.1.3
10.1.1.4

File B:
-------

abcdefg

10.1.1.1
10.1.1.2
10.1.1.3
***

Difference result
-----------------

File A:
-------

10.1.1.4

File B:
-------

**

On the above example. It is comparing only the IPs in both the files and it is giving the data like difference result. Same thing is required. It should not compare other than IP address.If any IP missed out or any mismatch in those IPs alone. It has to provide the difference.

Please help me.
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 2

Hi,
Anybody having solution for my query?
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100