Saving a file inside app’s main directory

txt file under App.app/here.text ? Currently I found NSSearchPathForDirectoriesInDomains

 NSArray* dirs = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject] error:NULL];

but it places under documents. Can i save it under under Appname.app/here

https://www.alphansotech.com/wp-content/uploads/2015/11/iosDirectory.png



Read more here: https://stackoverflow.com/questions/64405848/saving-a-file-inside-apps-main-directory

Content Attribution

This content was originally published by febamod342 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: