Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-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
Joined
Jul 10, 2003
Messages
19
Location
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?
 
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.

Part and Inventory Search

Sponsor

Back
Top