This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Help with fortran output file
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: s chatterjee <ansusn at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 09 Jan 2003 21:28:28 +0100
- Subject: Re: Help with fortran output file
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <20030109181841.50954.qmail@web14401.mail.yahoo.com>
s chatterjee wrote:
I want to append the output of a g77 compiled fortran
program to the contents of an existing file, (so that
the existing file is not overwritten), is there any
way of doing this?
The attached program will append the string "aap" to the file fort.1
every time when run:
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)
open(1,access="append")
write(1,"(A)") "aap"
close(1)
end