tags:

views:

56

answers:

4

Hi Friends, I want to compare two text files and want to highlight the differences. Can any one of you help me in doing that thro Java program.

Thanks in advance.

+2  A: 

Just google for Java diff library, there are tons of them.

seanizer
A: 
aioobe
A: 

The google-diff-match-path library seems to provide the functionality you need. Here's a demo of it in action.

Don
+1  A: 

In Eclipse right click on filename in navigator bar, then select "Compare With".

Boris
Heh, this is a good answer. How to compare two files using a java program! :-)
aioobe