文件保存读取

FILE * out_fp;
 const char * out_file = "output.bin";
 out_fp = fopen(out_file, "wb" );
 if( out_fp == NULL ){
     printf(" file open failed\n");
     exit(1);
 }
size_t read_size;
size_t reality_size;
if(reality_size!= (read_size = fwrite(model, sizeof(T), read_size, out_fp))){
}

  

 

 

你可能感兴趣的:(文件保存读取)