General information
Category:
Coding, syntax & commands
Sorry, it should have been:
x = asc(fread(mfile,1)) + (asc(fread(mfile,1)) * 256) + ;
>(asc(fread(mfile,1)) + (asc(fread(mfile,1)) * 256)) * 256 * 256
>I am currently importing data directly from some data files written by a C program. I have been able to import numbers so far by reading each byte with:
>x = asc(fread(mfile,1)) + (asc(fread(mfile,1)) * 256)
>
>etc. as needed. This has worked well for me until now. I am faced with having to read what are called Real Numbers or I believe Floating Point. I can't bend the old method to read these things. The ones I need to read are 4 bytes. The 2 byte numbers work the old way but I really have to read these new ones.
>
>HELP! Anyone got any ideas?
>
>John.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only