Hi. I am trying to parse CSV data. Not a huge file. Probably a kilobyte or two.
Should I just be using NSString's stringWithContentsOfFile and iterate over the string to figure out the comma delimited data? (Is there a maximum NSString length?)
I was looking at NSData and I wasn't really clear how I iterate over the data in the NSData object. I guess "byte" gets me the head pointer, and I increment the pointer to iterate the length?
(I take it the advantage of NSData is the huge file size it can load into memory as pure bytes, correct? And in this case I don't need to worry about it and just parse the loaded NSString?)
Thanks.
(By the way, I googled some CSV code around the Internet but want to roll my own; mostly because I don't really understand what others are doing so might as well just do it my own way and understand it).
Should I just be using NSString's stringWithContentsOfFile and iterate over the string to figure out the comma delimited data? (Is there a maximum NSString length?)
I was looking at NSData and I wasn't really clear how I iterate over the data in the NSData object. I guess "byte" gets me the head pointer, and I increment the pointer to iterate the length?
(I take it the advantage of NSData is the huge file size it can load into memory as pure bytes, correct? And in this case I don't need to worry about it and just parse the loaded NSString?)
Thanks.
(By the way, I googled some CSV code around the Internet but want to roll my own; mostly because I don't really understand what others are doing so might as well just do it my own way and understand it).