I want to simply display array data of my directory for which i tried this code..directory is in resources folder..code is below..may i know what is going wrong..data is not displaying after i press a button
@implementation filemanagerViewController
- (void)viewDidLoad {
[super viewDidLoad];
filemag =[NSFileManager defaultManager];
}
-(IBAction)buttonpress:(id)sender
{
filelist=[filemag directoryContentsAtPath:@"directory.plist"];
count=[filelist count];
//i used a 'for loop here' for i<count
NSLog(@"%@",[filelist objectAtIndex:i]);
}