/ Published in: Objective C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Read in and store as stringNSString*file =[[NSBundle mainBundle] pathForResource:@"jsonTest" ofType:@"txt"]; encoding:NSUTF8StringEncoding error:NULL]; debug(@"str: %@", str); // Do something with the test data... // Read in and store as raw data bytesNSString*file2 =[[NSBundle mainBundle] pathForResource:@"data" ofType:@"txt"];