Answers for "what syntax is used to write a file in c using binary mode?"

C
15

write a binary file c

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
Posted by: Guest on May-15-2020

Code answers related to "what syntax is used to write a file in c using binary mode?"

Code answers related to "C"

Browse Popular Code Answers by Language