/* to write elements 2 through 5 of a floating-point array */floatdata[10];fwrite(&data[2],sizeof(float),4,fp);/* Read or write a structure */struct{shortcount;longtotal;charname[NAMESIZE];}item;fwrite(&item,sizeof(item),1,fp);

A fundamental problem with binary I/O is that it can be used to read only
data that has been written on the same system.