More questions on reading structures [message #13358] |
Fri, 06 November 1998 00:00 |
gadagkar
Messages: 3 Registered: November 1998
|
Junior Member |
|
|
This is a follow up question on reading structures from a binary file.
I am using READU to read structures from a binary file. Now I have a header
structure of size 1024 bytes and data record structure of size 1028 bytes. So
I read the header structure first. Then I figure out from the header
structure how many data records do I have to read and read them all at once
into an array of structures. This works just fine. However, if I try to read
a specific data record then except for the first data record any other data
record is not read in correctly. Looks to me (based on my testing) that these
read operations of specific records work only if they begin on a 8 byte
boundary.
I am using IDL on a Linux platform and I would like to see if any one seems to
agree with this finding or am I making a mistake somewhere.
Rishi.
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
|
|
|