int SegBaseSetMain::WriteTile( string filename , //(I )ファイル名
const vector<string> &values //(I )デフォルト値
)
{
char line[256];
FILE *fp = NULL;
string strTemp;
if ( (fp=fopen(filename.c_str(),"w+t")) == NULL )
{
return 1;
}
for ( int index = 0; index < values.size(); ++index )
{
strTemp = values[index];
sprintf( line, "%s/n", strTemp.c_str() ) ;
fwrite( line, sizeof( char ), strlen( line ), fp );
}
fclose( fp );
return 0;
}
writeFile
最新推荐文章于 2023-08-29 03:18:05 发布