[Newbies] Reading and writing C structs
David Finlayson
dfinlayson at usgs.gov
Tue Jul 1 05:27:12 UTC 2008
OK, I've got an object that can read int and uint for 8, 16, 24 and 32
bit numbers from a binary file stream. But I cant figure out how to
read a float or double. What I want is something like this (these
don't work):
double
| n |
n := Float from: (aFileStream next: 32).
^n
float
| n |
n := Float from: (aFileStream next: 16).
^n
Any tips?
Thanks
david
More information about the Beginners
mailing list