File Operations in Android NDK

前端 未结 5 1515
太阳男子
太阳男子 2020-11-28 03:14

I am using the Android NDK to make an application primarily in C for performance reasons, but it appears that file operations such as fopen do not work correctly in Android.

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-28 03:52

    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:

     
    

提交回复
热议问题