Save Binary Data To File C

[Solved] Save Binary Data To File C | Elixir - Code Explorer | yomemimo.com
Question : write a binary file c

Answered by : magnificent-macaw-1psjt1mkw9md

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

Source : https://stackoverflow.com/questions/17598572/read-and-write-to-binary-files-in-c | Last Update : Fri, 22 May 20

Answers related to save binary data to file c

Code Explorer Popular Question For Elixir