Hi all,

Can anyone help with this one? I'm out of my depth here.....

I have a binary file created by a logging device containing lat and long,
date, time, year, and several readings. The data is logged at 1 hertz so I
have multiple readings in the same format in the same file. The string
length logged every second is 22 bytes and I would like to endup with the
complete file in the 14 columns that the data relates to. (I have opened
the file in a hex editor and can see the data structure)

I am slowly trying to learn mapbasic and have opened the file as a binary
type - see below

Include "MENU.DEF"
Include "MAPBASIC.DEF"

        Dim Lat as float 
        Open File "a:\1.Bin" For BINARY As #1
        Get 1,2630,Lat
        Print "Hex Value is " = Lat

to see if I could open the file and read the value at position 2630 as a
first stage to reading the entire file.
The .mb compiles ok with no error messages but on running it i get a data
mismatch error.
Could anyone help and suggest a way forward please? Should I be trying to
do this in eg Excel or is there an easier way to get the data into a usable
format?


                                Thanks,

                                                Jim


----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to