I believe so. I'll have to study up on specifically how to do it, but the
file can be read in four bytes at a time. For starters, I've opened up the
body.dof file (from the lotus at your site) using random access. If I randomly
pick a record number, I'll get a small set of numbers read in depending on
whether I'm pulling it out as a long integer, integer, byte, etc.. Perhaps
opening in random access mode, then pulling long integers out of it will get
them 4 bytes at a time all the way through. It returns a number, for instance,
record number 1 written to a long integer returns "826691396." I'm not sure
record number 2 would automatically be the next four bytes in this case though,
I don't know much about this stuff. I'll check with some folks that use my
compiler and see what they say.
Oops, just now, I tried pulling and storing as a four byte ASCIIZ type.
Record number one shows "DOF1" as you indicated :-) I'll blast through and see
how many of these I find right now. (I'm working and writing at the same time
here.) Ok, it looks as though that's the only "DOF1" showing up. Is that
right, or should there be more? I might not have checked the entire file. Are
your DOF files made entirely of 4 byte chunks? If not, I can open it in binary
mode(I'm confused enough as it is, would rather stick to another method ;-))
Haven't given up just yet!
Any suggestions or thoughts?
Thanks,
Todd Wasson
---
Performance Simulations
Drag Racing and Top Speed Prediction
Software
http://www.racesimcentral.net/