This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: OPEN UNIT in G77
- To: Stig-Inge Gustafsson <si at gustafsson dot se>
- Subject: Re: OPEN UNIT in G77
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Fri, 01 Dec 2000 20:45:31 +0100
- CC: gcc at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <3A27D70C.2C1F921D@gustafsson.se>
Stig-Inge Gustafsson wrote:
> What is the word for the screen in g77. I want to write the following:
>
> IOERR=6
>
> OPEN(UNIT=IOERR, FILE='SCREEN')
>
> And the IOERR messages should be sent to the SCREEN. In C its probably
> 'STDOUT'
>
> I have looked "everywhere" on the info and man pages for g77 and on the
> net but not found the solution. I have a Linux SUSE 6.4 distribution.
You are right - we never thought of documenting that; the simplest
solution leading to the behaviour you want is to leave out the
"FILE='SCREEN'" part of the OPEN statement.
Unit 6 will by default refer to the screen (for a program run from the
command line).
Hope this helps,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://g95.sourceforge.net/ (under construction)