Mail Archives: djgpp/1994/07/31/19:41:32
Thanks to anyone who pointed out that byte swapping between Sun and
PC was probably sufficient to pass floating point numbers, as this
was indeed the case. Obviously, I realize that it may not work when
I move to other platforms, but for the time being :
o I don't have to invent/adopt an unversal 4byte/value exchange format
(like the one byte/character that map one-to-one across any platform;
I wonder to whom we owe that benefit....),
o it works and as I need to read in >300000 floats at the same time,
using fread is much, much faster than fscanf's (of course).
Leendert
- Raw text -