I want to parse the csv data with live link and convert the same in NSMutabledictionary.Here is the link that i am using for csv file.
http://ichart.yahoo.com/table.csv?s=BAS.DE&d=2&e=30&c=2012
Please help me out for the same.
Thanks in advance.
I want to parse the csv data with live link and convert the same in NSMutabledictionary.Here is the link that i am using for csv file.
http://ichart.yahoo.com/table.csv?s=BAS.DE&d=2&e=30&c=2012
Please help me out for the same.
Thanks in advance.
This link should have what you need. But, do you download that link as file into your app directory? If so, after importing parseCSV
, it is fairly easy to go through the lines of the csv file:
CSVParser *parser = [CSVParser new];
NSString *csvFilePath = [[NSBundle mainBundle] pathForResource:@"myCsvFile" ofType:@"csv"];
[parser openFile:csvFilePath];
NSArray *csvContentArray = [parser parseFile];
for (int i=0; i<csvContentArray.count; i++)
NSLog(@"parsed %d %@", i, [csvContentArray objectAtIndex:i]);
[parser closeFile];