📅  最后修改于: 2022-03-11 15:04:39.250000             🧑  作者: Mango
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