Home > Mobile >  Jni file read and write
Jni file read and write

Time:10-04

As shown in figure, if use the FILE * fp=fopen ("/storage.... "), which can be normal open the FILE, but with the FILE * fp=(STR, "r"), it can't open, but behind the if judgment in return env=NewStringUTF (STR) can show the right path, does anyone know why? [images]

CodePudding user response:

Not change the const char * to char *
  • Related