Astronomical FITS files also have an ASCII header followed by binary data. One option is to treat the file as binary and grab the header character by character. Another is to open the file twice, once as an ASCII text stream and once as a binary stream, read the header from the text stream, calculate the length of the header in bytes, offset the binary stream to the start of the binary data, and finally read the data from the binary stream.
Regards, Alan _______________________________________________ r6rs-discuss mailing list [email protected] http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss
