View previous topic :: View next topic |
Author |
Message |
Anonymous Guest
|
Posted: Thu Oct 20, 2005 9:44 am Post subject: Reading binary files with FTN95 |
|
|
I am trying to read a binary file with FTN95 with (I presume) the
wrong endian'ess!
I am looking for the equivalent of the CVF compiler option CONVERT for FTN95
so that I can specify the data format. Also, is there an equivalent option in the
OPEN statement to do this or will I have to resort to swap the bytes myself in
all occurence of reads in the code?
Thank you.
Guy. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Thu Oct 20, 2005 11:51 am Post subject: Reading binary files with FTN95 |
|
|
One approach is to use the FTN95 routines READF@ etc.
There is no option (either with OPEN or OPENRW@ etc) to swap bytes so it will be necessary to program this in. |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Thu Oct 20, 2005 1:31 pm Post subject: Reading binary files with FTN95 |
|
|
Thank you.
Guy |
|
Back to top |
|
|
SShaw
Joined: 19 Jan 2006 Posts: 2
|
Posted: Thu Jan 19, 2006 1:13 pm Post subject: Reading binary files with FTN95 |
|
|
Guy,
Did you ever get a response to your question ?
- SS |
|
Back to top |
|
|
|