读取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;
读取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;