Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading a double from a file
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Reading a double from a file
Miscellaneous
Thread ID:
00096119
Message ID:
00096119
Views:
34
Hello!
I'm using low level functions to read (import) a binary file (I think it was created with C/C++). Of course, every thing I read becomes a character. Is there an easy way (I mean a function or something like that) to "cast" a 4-byte character to a VFP Flotant point variable, and a 8-byte to Double?
I can do the "translation" step by step (I mean bit by bit) in VFP, but it takes too long, considering that I have to do 60,000 or so "interpretation" of this every time I read the file.

TIA.

Ing. Omar Zavala
*****************************************************
Ing. Omar Zavala Moreno
Grupo Monteblaco "Donde nacen los champiñones"

omar@ozavala.com
Don't just try, do it!
Next
Reply
Map
View

Click here to load this message in the networking platform