读取Excel,并转化为字符串,每行的每一个单元格都以逗号隔开,每一行以“\r\n”结尾,最后对字符串处理
string fullPath = "level.csv"; ssize_t size = 0; char * data = reinterpret_cast< char *>(FileUtils :: getInstance()-> getFileData (fullPath,"r",& size )); std ::string stringData=data;原文链接:https://www.f2er.com/cocos2dx/340174.html