"Chien-hui Liu" <ch...
@tit.edu.tw> wrote in message
> Then error message shows "illegal structure for unformatted".
> I've noticed the file size is 1200bytes on IBM AIX.
> If I ran the same program in Windows 2000 by Compaq VF6.6, then the
> output file size is 1082bytes. If there's no extra data, it should be
> How come there's difference between the outputs of UNIX and Windows
It is most certainly possible to read the file in CVF, but
it will likely take some effort to do so. The court of last
appeal would be to open the file with FORM='BINARY' and
CONVERT='BIG_ENDIAN' in CVF which would allow you to read
the file if you can figure out what the extra data does so
that you could throw it out as it is read. You might find
things to be easier if you could change the kind of file you
write in AIX. If possible, I would look at the documentation
for the OPEN statement on both compilers to see if I could
find some extensions that make the two more compatible. As
alluded to above, the CONVERT and FORM specifiers are what
I would look at on the CVF side; hopefully you can find
something that makes sense on the AIX side. Would be nice
if both sides read and wrote IEEE-754 floating point...