This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: OPEN UNIT in G77


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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]