📜  编写二进制文件 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:39.250000             🧑  作者: Mango

代码示例1
FILE *write_ptr;

write_ptr = fopen("test.bin","wb");  // w for write, b for binary

fwrite(buffer,sizeof(buffer),1,write_ptr); // write 10 bytes from our buffer