Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #write #binary #file
ADD COMMENT
Topic
Name
2+8 =