Track changes in CSV and generate new files

Hi,

I have a list of products in CSV format, but I need to following to take place:

  • I need PHP to read CSV file and compare it with a previous CSV file
  • For product additions, generate a new CSV file with just new items called “Additions.CSV”
  • For product deletions, generate a new CSV file with just deleted products called “Deleted.CSV”

Any guidance would be appreciated.

Thanks!