i have a module to create a csv files and fill some data into that there is no error while am writing it on csv. But still i want to create more csv files and access it from my iphone App
Requirements:
1) i want what are the csv files which i have created should be visible on Iphone App i.e if i click downloads button in my App i have to list out all the csv files should be listed in table view
2) if i selected any of the csv files its should open in screen
here my sample code:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *filePath = [NSString stringWithFormat:@"%@/%@", documentsDirectory, @"EmployeeRecords.csv"];
NSLog(@"filePath-->%@",filePath);
[csvString writeToFile:filePath atomically:YES encoding:NSUTF8StringEncoding error:nil];
note: before making it as duplicate explain the answer then make it as duplicate that answer is not suitable for my question