I have a piece of C (eurgh) code that I'm converting to Delphi (hooray). As part of it I need to read a file structure in and as it's a byte file I'm using FILE of BYTE. However (and it's here that my brain gave up) part of the structure contains a float value. Any idea how I read in a float value from a stream of bytes?
bFile : FILE OF BYTE;
rValue : DOUBLE;
READ(bFile, rValue); ?!?!?!?!
I know that the reading of rValue is wrong but anybody got any ideas how it needs to be?
The Neil =:)