is the file inside your app's sandbox? You haven't said where it is.
fileimporter (not file_importer) puts up a user interface, so the user is granting explicit permission to access the file.
fopen() doesn't have UI, so it has to get the permission from somewhere else. That somewhere else can be implicit (the path leads to somewhere in the app's sandbox), or you can get the path by resolving a security scoped bookmark which you have created earlier by interacting with the user.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: