Does anyone did this thing before using c# apps? I have two csv files and I need to compare this two csv files and log those missing data from CSV1 to CSV2.
Scenario :
- Compare two CSV files
- If some data does not exist in CSV1 from CSV2 then create a report and list down those data that does not exist from CSV1 to CSV2.
I need your help for this one guys. Thank you so much!
You can import your data into a datatable. Here is a nice example of a CsvReader that imports your data.
And here is an MSDN example that shows the intersection of two datatables. If you change it to use Except instead of Intersect you will get the difference.