一次比较多个文件 [英] Multiple file comparison at a time

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

问题描述

嗨 我需要比较文件的内容..
概念如下.
我必须获得两个目录,其中包含来自两个不同人员的多个文件..
这两个目录都包含同一组文件...我必须比较两个目录中相应文件的内容,并执行字符串比较以及语法检查,最后我必须将更正合并到该文件中..
有人可以给我建议或示例代码吗?

Hi I am in need to compare the contents of the files..
the concept is as follows..
I have to get two directories containing multiple files from two different persons..
Both directories contain same set of files... I have to compare the contents of corresponding files of two directories and perform string comparison as well as grammar checking and finally i have to merge the correction in that file..
Can anybody give me suggestion or sample code for it?

推荐答案

您阅读了两个文件,并仔细研究了两个文件,直到发现不同之处.除非您知道要使用哪个文件,否则不能自动合并.如果您进入不同的部分该怎么办,您怎么知道只有一个人更改了它?也许他们都对同一部分进行了不同的更改.
You read the two files and you work through them until you find a difference. You can''t just automatically merge unless you know which file to prefer. What if you get to a section that is different, how do you know only one person changed it ? Perhaps they both made different changes to the same section.


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

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