> How can this handle constructing a big-endian output file from a > little-endian host? Or maybe I'm not understanding what you mean? The actual writers have to be templated. See writeHeaderTo for example. Cheers, Rafael