fwrite(ptr_src_file_buf , src_file_length , 1, fp_dst_file)
写完数据,一定要调用fclose,否则文件数据在缓存区,无法写到磁盘导致数据丢失,养成良好习惯。
fclose(写入文件文件指针);比如
FILE *txt_file5 = fopen("polar_encode05.txt","w+");
fclose(txt_file5);
fwrite(ptr_src_file_buf , src_file_length , 1, fp_dst_file)
写完数据,一定要调用fclose,否则文件数据在缓存区,无法写到磁盘导致数据丢失,养成良好习惯。
fclose(写入文件文件指针);比如
FILE *txt_file5 = fopen("polar_encode05.txt","w+");
fclose(txt_file5);