working with Excel file in C++

I have an excel file (.csv) like that:

Student ID | Average mark

1 | 8
2 | 6
3 | 9
Now input the Student ID at command windows, if ID=1,2 or 3, the program deletes both the ID and mark in the .csv file, else complains errors because the ID doesn't exist. I don't know how to compare the ID that we input and ID in file. I have an idea that making a new char array with all the ID in file and then compare with the ID inputed, but it didn't work. Please give some ideas. It's so hard.
Topic archived. No new replies allowed.