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 

length in bytes for a type

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





PostPosted: Wed Nov 03, 2004 3:04 pm    Post subject: length in bytes for a type Reply with quote

Hello,

I have created a type

Code:
TYPE val_table
REAL:Mad,densite,proba
END TYPE


and I want to stock in the variable longueur_fiche the length (in bytes) of this type's elements.
Then, I want to use this variable to read a binary file :

Code:
OPEN(11,FILE='loi.bin',STATUS='OLD', RECL=longueur_fiche, ACCESS='direct',ACTION='READ')

How can I do ?
Is there a function to do this action ?

In the same program, I want to compare two logicals elements

Code:
LOGICAL::presence
INQUIRE(FILE='loi.bin',EXIST=presence)
IF (presence==.FALSE.) STOP


Have you an idea ?

Thank you for your answer

Le Murphy
Back to top
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