Using JNI I can't get access to files like this:
ifstream file("file.txt");
file.txt
is in folder jni
, which is the same folder as the native code files
I can only access absolute path ("/sdcard/file.txt"
), but this trick is not what I'm looking for.
Tried "data/data/com.example.SomeExample/jni/file.txt"
but no luck.
How should I refer to a file as reletive path when working in native code?