std::ifstream fs(str.c_str(), std::ios::in);
if (!fs)
{
CCLOG(“ifstream fs error------------------”);
return -1;
}
相同的代码在windows 和ios下运行正常,在android下文件流加载失败?
请问有没有遇到相同问题的?不想用fopen,想知道失败原因
std::ifstream fs(str.c_str(), std::ios::in);
if (!fs)
{
CCLOG(“ifstream fs error------------------”);
return -1;
}
相同的代码在windows 和ios下运行正常,在android下文件流加载失败?
请问有没有遇到相同问题的?不想用fopen,想知道失败原因