- 462 名前:名前は開発中のものです。 [2018/09/01(土) 14:53:41.96 ID:PENKT9BN.net]
- さらに追記
csvの最後ってヌル文字で終わってないだろうから自分で足したほうがいいかも string all; char* path = "./hello.csv"; int size = (int)FileRead_size( path ) ; // '\0'が無い文字列char*をstringに渡すと長さ不定でまずい char* buffer = new char[size+1]; buffer[size] = '\0'; int id = FileRead_open( path, false ) ; FileRead_read( buffer, size, id) ; all = buffer; // copy to string delete[] buffer; FileRead_close(id);
|

|