Read txt file in res/raw/ within Android NDK
I have a file within my application that I want to have included within the .apk for my android app that is a .txt file. My application is almost entirely written in C through the use of the NDK, using OpenGL as well. I know I can bundle the txt file by placing it in /res/raw/, but is there anyway I can access this within开发者_C百科 the android NDK?
-Thanks
See the native-audio sample in the NDK. This has code that reads from the assets folder.
精彩评论