forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Reading binary files with FTN95

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Thu Oct 20, 2005 9:44 am    Post subject: Reading binary files with FTN95 Reply with quote

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

PostPosted: Thu Oct 20, 2005 11:51 am    Post subject: Reading binary files with FTN95 Reply with quote

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
View user's profile Send private message AIM Address
Anonymous
Guest





PostPosted: Thu Oct 20, 2005 1:31 pm    Post subject: Reading binary files with FTN95 Reply with quote


Thank you.

Guy
Back to top
SShaw



Joined: 19 Jan 2006
Posts: 2

PostPosted: Thu Jan 19, 2006 1:13 pm    Post subject: Reading binary files with FTN95 Reply with quote

Guy,

Did you ever get a response to your question ?

- SS
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group