writing output listing onto screen (or not) and onto file
- From: Bernard Bru <bru@xxxxxxxx>
- Date: Mon, 17 Jul 2006 09:59:28 +0200
Is it possible to simplify my code by putting only one
WRITE statement when I want to write output results onto screen
(or not) and onto a file :
I put :
CHARACTER*1 SEL
OPEN( 8,FILE='sosout')
WRITE(6,*) ' Sorties en ligne (o | n ou >)?'
READ (5,'(A)') SEL
IF(SEL.NE.'o') OPEN(6,FILE='NO')
WRITE(6,200) A, B, C
WRITE(8,200) A, B, C
200 FORMAT(' A B C=', 3F12.4)
............;
Thanks for your help!
Bernard Bru
.
- Follow-Ups:
- Re: writing output listing onto screen (or not) and onto file
- From: Tim Prince
- Re: writing output listing onto screen (or not) and onto file
- Prev by Date: Maximal free space on the plot
- Next by Date: Re: recl on g95 and gfortran
- Previous by thread: Maximal free space on the plot
- Next by thread: Re: writing output listing onto screen (or not) and onto file
- Index(es):