标签: android c android-ndk java-native-interface fopen
为什么我不能在C中以书写模式打开文件?我肯定有所有的权限,路径是正确的,因为它可以在读取模式下打开。例如:
file = fopen(path, "r");会返回正确的文件,但是 file = fopen(path, "w");始终返回null
file = fopen(path, "r");
file = fopen(path, "w");
在Java部分我可以编写文件,因此,我找到的解决方案是将数据写入C数组并将其返回给Java
我发现在其他问题或程序中,人们可以用C语写...是新版Android的问题吗?