7

How would I parse a CSV into an array. Its only a one column spread sheet I converted into an CSV so it shouldn't be too hard right?

Any way how do I do this?

2 Answers 2

12

Use a proper CSV parser such as https://github.com/davedelong/CHCSVParser

Sign up to request clarification or add additional context in comments.

Comments

-1

you can do this

new_array *new_obj = [csv_array componentsSeparatedByString:@","];

Hope it helps!!!!

2 Comments

This doesn't handle quoted values that may themselves contain a comma.
really bad :( this approach don't manage ALL the options like @Greg Malefic says

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.