Reading txt file in res / raw / in Android NDK

I have a file in my application that I want to include in the .apk for my Android application, which is a TXT file. My application is almost entirely written in C through the use of NDK using OpenGL. I know that I can link a txt file by putting it in / res / raw /, but is there anyway I can access this in the Android NDK?

-Thanks

+4
source share
1 answer

See the native-audio sample in the NDK. This is the code that is read from the resource folder.

+7
source

All Articles