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 

Little endian to big endian

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



Joined: 19 Jan 2006
Posts: 2

PostPosted: Thu Jan 19, 2006 1:11 pm    Post subject: Little endian to big endian Reply with quote


I need to read an unformatted file created by a third party application. The file is written with big_endian byte ordering. Can I read this file with the Salford FTN95 compiler ? I can't seem to find an appropriate switch.

-SS
Back to top
View user's profile Send private message
Andrew



Joined: 09 Sep 2004
Posts: 232
Location: Frankfurt, Germany

PostPosted: Thu Jan 19, 2006 1:42 pm    Post subject: Little endian to big endian Reply with quote

There is no switch to enable standard Fortran reads in big endian format however, it is possible to read any file in binary format using the Salford routine READF@. You can then perform operations as needed on the binary input, swapping to little endian if you need that.
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