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 )