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

jsnuff1

macrumors 6502a
Original poster
How would you go about programatically obtaining the file URL of a file thats in the root directory of the application package?

My app reads an XML file that I have included with it, but have no idea on how to access it.
 
Here is a snippet from an app of mine:

Code:
NSString *template = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"post" ofType:@"html"]];

This will load the files named "post.html" into an NSString.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.