objective c - Error using a file path in fopen on iOS -


i'm new objective-c, , have following problem in code:

nslog(@"path: %@", _nomfile); //show--> path: /users/heberthdeza/library/application support/iphone simulator/6.1/applications/75184ce7-6ccd-4e5e-abd1-e150cb35164e/documents/discovery/ios-4f55a50d-a3c7-4090-9969-f186c0501f89-23172117.zvg file *fp; fp=fopen([_nomfile cstringusingencoding:nsasciistringencoding],"rb"); if (fp==null) {   nslog(@"error"); } 

fopen returns null (and shows "error"). doing wrong?


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

python - Received unregistered task using Celery with Django -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -