C# - 比较两个CSV文件并给出输出 [英] C# - Comparing two CSV Files and giving an output

查看:119
本文介绍了C# - 比较两个CSV文件并给出输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要一点帮助,我有两个信息来源,信息被不同的程序导出到两个不同的CSV文件。他们应该包括相同的信息,但这是需要检查的。

Need a bit of help, I have two sources of information and the information is exported to two different CSV file's by different programs. They are supposed to include the same information, however this is what needs to be checked.

因此,我想做的如下:


  • 从这两个文件获取信息。

  • 比较

  • 输出任何差异(例如,文件A包含此文件,但文件B没有,反之亦然)。

文件是20万个奇数行,因此需要尽可能有效。

The files are 200,000 odd rows so will need to be as effective as possible.

尝试使用Excel做这件事已经证明是太复杂,我真的很努力找到一个编程方式。

Tried doing this with Excel however has proved to be too complicated and I'm really struggling to find a way programatically.

推荐答案

根据您对问题的评论的答案,如果不需要使用代码,您可能比下载比较工具更糟糕,可能更复杂。

Depending on your answers to the comments on your question, if it doesn't really need to be done with code, you could do worse than download a compare tool, which is likely to more sophisticated.

(例如 Winmerge

这篇关于C# - 比较两个CSV文件并给出输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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