I am retriving some file from the web containing data in a specific format which I would like to parse. However I know only how to get the file from the web:
dispatch_async(server_queue, ^{
NSData* data = [NSData dataWithContentsOfURL:
kURL];
[self performSelectorOnMainThread:@selector(parseData:)
withObject:data waitUntilDone:YES];
});
In the parse method I would like to tokenize each line of the file but I am not sure how to extract the lines from the NSData object.
-(void)parseData:(NSData *)responseData {
//tokenize each line of responseData
}
Any suggestion?