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 

I/O problem

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



Joined: 08 Jun 2009
Posts: 3

PostPosted: Tue Nov 17, 2009 4:56 pm    Post subject: I/O problem Reply with quote

I'm having trouble with this seemingly trivial write statement.

write (CDATE,'(I4,I2.2,I2.2)') YEAR, MON, DAY

The program prints CDATE, YEAR, MON, DAY on the screen but would not output it to a file.
Can someone help me with this please?
Fonya
Back to top
View user's profile Send private message Visit poster's website
DanRRight



Joined: 10 Mar 2008
Posts: 2817
Location: South Pole, Antarctica

PostPosted: Tue Nov 17, 2009 10:30 pm    Post subject: Reply with quote

open(33,file='fonya.res',STATUS='unknown')
write(33,*) cdate
close(33)
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 -> General 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