Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MorphingDragon

macrumors 603
Original poster
Mar 27, 2009
5,159
6
The World Inbetween
How would you go about reading non-keyed(.csv specifically) text files in Objective-C or C with Cocoa? I know there is fscanf() but one of the requirements is having a GUI loading/saving system.
 
With NSFileManager you can load up the file from the disk and read in x amount of bytes at a time. Then you just load it into a data structure that allows for variable amounts of fields. Then display on the screen in a NSTableView or whatever.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.