-
-
Save bsdshell/bf2b9620ad58b4ef0835 to your computer and use it in GitHub Desktop.
get document directory, nsdocumentdirectory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); | |
NSString *documentsDirectory = [paths objectAtIndex:0]; | |
NSString *path = [documentsDirectory stringByAppendingPathComponent:@"logfile.txt"]; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment