windows下开发cocos2dx程序时,直接使用相对地址对程序进行读取与写入,并未出现问题,但在编译成安卓平台下的程序时出现无法写入问题。
以下是资料:
- CCFileUtils::sharedFileUtils()->getWriteablePath() 实际路径
http://blog.csdn.net/brook0344/article/details/24632559
注意CCDictionary* plistDic = CCDictionary::createWithContentsOfFile(testPlistPath);是否可以直接创建目录 - Cocos2d-x 深入解析系列 : 以XML文件方式保存用户数据
http://blog.csdn.net/honghaier/article/details/8814551