I am trying to create an input stream from a text file stored in my assets folder in the android project, but I'm having some trouble. Is it sufficient to just provide the path to the file as you would in a regular desktop program (using ifstream file_handle; file_handle.open("path/to/fileName");
), or do you have to somehow load it onto the application in another way? If it's the latter, what is the code for doing that in the ndk? Would I still be able to use the file as an ifstream
object?
Thanks,
naxchange