Is there a program out there that can take a text list like this:
cat, dog, bird
and output this:
@"cat", @"dog", @"bird"
I’ve got a long list that I’d like converted for an NSDictionary.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why not do it with iOS? Read the file into a string, separate it into components, iterate over the components and write them in the format you want.
Some methods you will find useful:
Make your output words with something like:
I don’t know how “long” your list is but I have done this with the entire scrabble dictionary where the words were separated by a
\n.