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

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -