Binary Files in C — a practical guide to C binary files with clear examples you can reuse in real projects.
C Programming Tutorial Series (77/102). Prefer one article? Read the complete C programming tutorial.
Short description
Struct padding/endianness make portable binary formats tricky.
Binary tip
FILE *fp = fopen("data.bin", "wb");
fwrite(&item, sizeof item, 1, fp);