* Help with fortran output file
@ 2003-01-09 18:18 s chatterjee
2003-01-09 20:27 ` Toon Moene
0 siblings, 1 reply; 2+ messages in thread
From: s chatterjee @ 2003-01-09 18:18 UTC (permalink / raw)
To: gcc-help
hi.
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?
Best, S. Chatterjee
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Help with fortran output file
2003-01-09 18:18 Help with fortran output file s chatterjee
@ 2003-01-09 20:27 ` Toon Moene
0 siblings, 0 replies; 2+ messages in thread
From: Toon Moene @ 2003-01-09 20:27 UTC (permalink / raw)
To: s chatterjee; +Cc: gcc-help
[-- Attachment #1: Type: text/plain, Size: 576 bytes --]
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)
[-- Attachment #2: append.f --]
[-- Type: text/plain, Size: 86 bytes --]
open(1,access="append")
write(1,"(A)") "aap"
close(1)
end
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-09 20:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-09 18:18 Help with fortran output file s chatterjee
2003-01-09 20:27 ` Toon Moene
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).