How to write CCMutableDictionary or CCMutableArray to file?

Hi Friends,

I am able to read plist file using static CCMutableDictionary<std::string, CCObject*>* dictionaryWithContentsOfFile ( const char *pFileName).
but am not able to write CCMutableDictionary or CCMutableArray to file.

Can any one please Help me on this.

Thanks in Adv.

Hi, this funciton is not supported in cocos2d-x. You can iterate through all elements of CCMutableDictionary and CCMutableArray, write each element into your plist file.:slight_smile: