Alejandro Santiago wrote:
I just wrote a piece of code to show how it works:
This will create a file test.plist in your resources directory with this content:
I tried this code , but I can’t find my .plist file anywhere. Please see code below , I tried.
cdMatrixDictionary->setObject( CCString::create("tony"), key);
if( cdMatrixDictionary->writeToFile("test.plist") )
So it should have created test.plist with value “tony” for every key.It even logs Written , which mean writeToFile was successful.
But when I tried to read back , it crashes here. Which means test.plist was not created.
Don’t know whats happening.. ! Help needed!