vs2017写的cocos文件读写错误

我的代码:
auto fu = FileUtils::getInstance();
FILE *f = fopen(fu->fullPathFromRelativeFile(“data.txt”, fu->getWritablePath()).c_str(), “w”);
fprintf(f, “世界你好”);

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

程序没有error,但是弹出一个白框,文件也没有生成

我该怎么消除这个bug???