C# - Comparing two CSV Files and giving an output

后端 未结 3 517
栀梦
栀梦 2021-01-15 19:29

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 sa

3条回答
  •  时光说笑
    2021-01-15 20:22

    OK, for anyone else that googles this and finds this. Here is what my answer was.

    I exported the details to a CSV and ordered them numerically when they were exported for ease of use. Once they were exported as two CSV files, I then used a program called Beyond Compare which can be found here. This allows the files to be compared.

    At first I used Beyond Compare manually to test what I was exporting was correct etc, however Beyond Compare does have the ability to be able to use command lines to compare. This then results in everything done programatically, all that has to be done is a user views the results in Beyond Compare. You may be able to export them to another CSV, I havn't looked as the GUI of Beyond Compare is very nice and useful, so it is easier to use this.

提交回复
热议问题