xml读取,安卓问题。

std::string path = FileUtils::getInstance()->getWritablePath() + “We.xml”;
bool exit = FileUtils::getInstance()->isFileExist(path.c_str());
打完包后,看到We.xml在assets文件夹下。

这样,在win下没有问题。。安卓下竟然读不出来。

std::string path = FileUtils::getInstance()->getWritablePath() + “We.xml”; 这里获取路径不对吧?
android:
assets文件夹只读。
getWritablePath :Returns the absolute path to the directory on the filesystem where files created with openFileOutput(String, int) are stored.

直接get里面的某一个是数据 去判断xml是否存在不是更方便呢