I’m wondering what is the default path when saving a file using the NSArray writeToFile:atomically: method…?
[array writeToFile:@"myFile.plist" atomically:YES];
10x
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I executed the following code:
On the simulator the file
foo123456.txtpopped up in my root of my HD. The console printed+++, so the operation was successful.On the device it failed, printing
---.