i’m using cocos2d-x 1.0.1-r12
i have a file aaa.txt, that contains some strings, in resource folder
i’d like to read it.
tried many times with:
textFileName = cocos2d::CCFileUtils::fullPathFromRelativePath(textFileName.c_str());
FILE *fp = fopen(textFileName.c_str(), "r");
if(fp==NULL) CCLog("nooooooooooooo");
else CCLog("siiiiiiiiiii");
while:
unsigned char *p=CCFileUtils::getFileData(textFileName,"r",pSize);
seem not exists
how can i read that file?
thanks