Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Writing to an e...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 8334 of 8908
Post > Topic >>

Writing to an existing ASCII file destroys it?!?!

by deltaquattro <deltaquattro@[EMAIL PROTECTED] > Jun 6, 2008 at 10:37 AM

Hi,

I want to modify a single line of an ASCII file which I am reading,
without touching the rest, but this

do i=1, ln
    read(lu,*)
end do
write(lu,'2(F15.6)') a, b

results in a and b being written to line ln (which is correct), and in
all the rest of the file being deleted! Isn't there a way to change
just one line? thanks

Regards,

deltaquattro
 




 5 Posts in Topic:
Writing to an existing ASCII file destroys it?!?!
deltaquattro <deltaqua  2008-06-06 10:37:44 
Re: Writing to an existing ASCII file destroys it?!?!
tholen@[EMAIL PROTECTED]   2008-06-06 18:15:01 
Re: Writing to an existing ASCII file destroys it?!?!
nospam@[EMAIL PROTECTED]   2008-06-06 11:18:56 
Re: Writing to an existing ASCII file destroys it?!?!
robert.corbett@[EMAIL PRO  2008-06-06 20:08:26 
Re: Writing to an existing ASCII file destroys it?!?!
glen herrmannsfeldt <g  2008-06-06 22:00:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Nov 19 8:30:44 CST 2008.