Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to write a code to compare contents of text files in one directory against contents of files in another directory and write the matched files' filenames in a text file in JAVA. I am learning and doing it, it takes a long time. If some one can help me with the code that would be great.

Thanks
Posted

For ideas regarding comparing files, take a look at the source code of WinDiff. You can search and download the source code from the Internet. You can use the logic in your Java program.

Good luck and happy programming!
 
Share this answer
 
Code Project had a competition a while back for the person who wrote the best article on a diff utility (a utility that compares two files). There were various articles written for that competition, so search for diff articles on Code Project and you should find some good ideas.
 
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