Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

Hi,
Anybody having solution for my query?
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900