How to manipulate a csv file?

My main goal is to create a class that allows me to manipulate a .csv file in such a way to where I can add contacts to the file, delete contacts from the file, call the entire file, call certain objects(such as first name, last name, or city of residence), or delete all contacts. I am not sure how to go about starting as I have not manipulated a .csv file before, much less made a class for one. Where should I begin or start researching?
Last edited on
closed account (SECMoG1T)
start by researching on the file format, how is data store? what fields are available? once you find that out you will have the requirements from which to implement your class on.

the easiest way to manipulate file data is by loading the data into memory , maybe a vector of contact objects ,once you are done manipulating you can save the data back to your file.

EDIT:

just found the rules, quite simple actually and will be quite easy to implement.
https://www.mailjet.com/support/how-to-build-a-csv-file,470.htm
Last edited on
Topic archived. No new replies allowed.