cocos2d-x之文件读写

bool HelloWorld::init()

{

if ( !Layer::init() )

{

return false;

}

auto fu=FileUtils::getInstance();

//FILE *f=fopen(fu->fullPathFromRelativeFile("data.txt",fu->getWritablePath()).c_str(),"w");

//fprintf(f,"Hello World");

//fclose(f);

//log("%s",fu->getWritablePath().c_str());

Data d=fu->getDataFromFile(fu->fullPathFromRelativeFile("data.txt",fu->getWritablePath()));

log("%s",d.getBytes());

return true;

}

上一篇:SQL server 如何修改登录名和密码


下一篇:SQL Server2005修改计算机名后不能发布订阅