Connecting Tech Pros Worldwide Forums | Help | Site Map

How to read Binary file

Newbie
 
Join Date: Sep 2006
Posts: 26
#1: Jan 14 '08
Hello,

i want to read values from a binary file in VisualBasic 6.0
Initially i want to read only header of this binary file. I know this structure for this header. It is 100 bytes long and consists of
9 variables of Integer: Signed 32-bit integer (4 bytes) and
8 variables of Double: Signed 64-bit IEEE double-precision floating point number (8 bytes).

when i tried to assign integer and double data type for these variables i am getting unusual values.

can some one help me in this regard.

Thanks
Raj

debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,509
#2: Jan 14 '08

re: How to read Binary file


Please find a related discussion here
Moderator
 
Join Date: Oct 2006
Location: Australia
Posts: 7,748
#3: Jan 15 '08

re: How to read Binary file


Can you show us how you are attempting to read the file now?
Reply