Hello,
How to know the contents of NSbundle in XCode Porject??
bcoz issue is, I have placed a config.doc file in resource folder of my XCode project and i want to read the contents of that config.doc file, but it says that config.doc file is not found. How to solve this problem??
This is how my code looks like:
-(void)applicationDidFinishLaunching:(UIApplication*)application
{
if([NSBundle mainBundle]pathForResource;@"config" ofType:@"doc")!=nil)
{
NSLog(@"File Exists");
}
else
{
NSLog(@"File not found!!");
}
NSString *configContents = [[NSBundle mainBundle]pathForResource:@"config" ofType:@"doc"];
NSLog(@"Contents of config file : %@",configContents);
}
OUTPUT :
File not found!!
Contents of config file :(null)
how to solve this problem?? i'm not able to make where is the mistake.. plz help
Thank You