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

hiddenpremise

macrumors regular
Original poster
MOD PLEASE THIS. HAD A BRAIN FART

Answer:
[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:mad:"your file name.dat"];

I have a txt file in my project. I want to initialize a string from it, but I can't seem to figure out how to get the absolute path to it so that I can use stringWithContentsOfFile command. How do I find the absolute path of something that is included in my project?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.