I have this arborescence:
Project Folder
build
Project
ProjectTests
Pictures
In the sub-folder “Project” I have the AppDelegate and a file called “Alert.txt”. I want to access that text file from my AppDelegate so I tried :
- (void) applicationDidFinishLaunching:(UIApplication *)application
{
NSLog(@"test");
NSFileManager *fileManager = [NSFileManager defaultManager];
if ([fileManager fileExistsAtPath: @"Alert.txt" ] == YES)
NSLog(@"good");
}
Of course it prints “test”, but not “good”. What is the correct path ?
To get the path to your file use