Search the web
Sign In
New User? Sign Up
Fortran · Fortran Q/A's, info, lib and fans
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Help needed in solving an error in 'write' statement.   Message List  
Reply | Forward Message #470 of 516 |
Re: [Fortran] Help needed in solving an error in 'write' statement.

hi,

The open statement for output file you have entered is as follows,

OPEN (UNIT=17,FILE=TestoutputV,status='new')

In this statement is says that the status is new. ("Status = 'new'). and
that must be the reason why it keeps on saying the output file already
exists.

this file cannot be new everytime as this file is already created in your
first run.

you can do one thing, remove that status in your statement as it is
optional, else you can give the statement as follows,

Open (17,file='testoutput')......

This must solve your problem. I am actually using FORTRAN 99.

Please check it and let me know, whther you solved your problem or not.....


--
Sunil Gurrapu
Apt 34, 50 - Munroe Place
Regina - S4S 4P7, Canada
email: sunil_gurappu@...
Mobile: +1 306 924 5877


[Non-text portions of this message have been removed]




Thu May 29, 2008 4:38 am

sunil_gurappu
Offline Offline
Send Email Send Email

Forward
Message #470 of 516 |
Expand Messages Author Sort by Date

Hello, I;m a new user of Fortran 77 and I'm trying to write a subroutine where i have to read a bunch of data from an input database file. I have written code,...
saruna26
Offline Send Email
May 28, 2008
8:35 pm

hi, The open statement for output file you have entered is as follows, OPEN (UNIT=17,FILE=TestoutputV,status='new') In this statement is says that the status...
Sunil Gurrapu
sunil_gurappu
Offline Send Email
May 29, 2008
4:58 pm

hi, i am also a learner.. i hav some doubts in your code.. 1st one is there is no close -statement for both the files. 2nd one is y u are giving continue in...
Ramachandran murugan
pecram_24
Offline Send Email
May 30, 2008
4:41 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help