i have this file call ‘ch001’ (no extension, its a plain text file with my character json in text)
cc.log(cc.FileUtils.getInstance().fullPathForFilename(‘res/’+name));
does print the correct location in simulator (/Library/Application Support/iPhone Simulator/7.0.3/Applications/3C0DDEE8-AB0A-4E46-B5BC-64203E789623/MyGame.app/res/ch001)
but
var result = cc.FileUtils.getInstance().getTextFileData(cc.FileUtils.getInstance().fullPathForFilename(‘res/’+name));
result always return nothing.
Cocos2dx.2.2
anybody help please!