comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » More questions on reading structures
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
More questions on reading structures [message #13358] Fri, 06 November 1998 00:00
gadagkar is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Age/Experience (was Re: IDL 5.2 reviews?)
Next Topic: Age/Experience (was Re: IDL 5.2 reviews?)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:45:28 PDT 2025

Total time taken to generate the page: 0.00383 seconds