File Operations in Android NDK

Other answers are correct. You can open a file through the NDK using FILE and fopen, but don’t forget to place a permission for it.

In the Android manifest place:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> 

Leave a Comment