I was wondering how to read a file from a specific location on ios.
For example, I would really like to have files with the same name that are stored in different places, for example.
Project / Files / Text / 1.txt
Project / Files / MoreText / 1.txt
Currently I can upload files, but I don’t see how to specify a specific directory. My program downloads the file no matter where it means that I can only have one text file or another file.
I tried using NSFileManager:
NSFileManager *filemanager = [NSFileManager defaultManager];
NSArray *filelist = [filemanager directoryContentsAtPath:@"Text"];
but later I realized that this actually does nothing. It just does not return any objects. I also saw the NSBundle, but did not see an example when a particular file is returned.
I need the file names to be the same for my algorithm that downloads files.
.