文字档案比较 [英] Text files comparison

查看:71
本文介绍了文字档案比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写代码,以将一个目录中的文本文件的内容与另一目录中的文件的内容进行比较,并将匹配的文件的文件名写入JAVA的文本文件中.我正在学习并这样做,这需要很长时间.如果有人可以帮助我提供很棒的代码.

感谢

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

推荐答案

有关比较文件的想法,请查看WinDiff的源代码.您可以从Internet搜索和下载源代码.您可以在Java程序中使用该逻辑.

祝您编程愉快,工作顺利!
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!


Code Project在diff实用程序(可比较两个文件的实用程序)上撰写了最佳文章的人前阵子.有很多关于该比赛的文章,因此,在Code Project上搜索diff文章,您应该找到一些好主意.
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.


这篇关于文字档案比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆