Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why does my program stop writing after the first carriage return?

Status
Not open for further replies.

MigrantFirmWorker

Aerospace
Jul 10, 2003
19
0
0
US
(Fortran 77, Windows 2000)
I am trying to write to a file:

open (2, FILE='outputfile')
write(2,*) 'stuff'
write(2,*) 'more stuff'
...
write(2,*) 'yet more stuff'

The first line writes correctly. The following lines do nothing and I get no error or warning.
I tried commenting out the first line. Then the second line writes, but none after.

Any suggestions?
 
Replies continue below

Recommended for you

You need to give us the whole program ( or rather, a reduced one ) that shows the problem occuring.

What you've shown above "appears" fine. However, you've only shown a few lines out of your code. There's no way to tell you what is going on here. Also... which compiler are you using??

Email me a copy of your code and I wil independently test it for you if you would like.

Dan :)
dan@dtware.com
 
Status
Not open for further replies.
Back
Top