Corrections
Originally Posted by
crosswire
fwrite is an appropriate function to use instead of fprinft because it writes byte by byte but it still suffers from text mode translation. fprintf can write binary using the format string and some casting but it looks a bit indirect.
Corrections, fprintf cannot be used. I was thinking of casting the struct to a string, then writing the string, but only a part of the string would be written because a null charater may terminate the string. A string will not be read properly if it holds binary data
Let's act on what we agree on now, and argue later on what we don't.
Black men leave Barbeque alone if Barbeque don't trouble you