Re: writing output listing onto screen (or not) and onto file



Tim Prince wrote:
Bernard Bru wrote:

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 :

Are you asking about facilities provided by most systems for redirecting output sent to '*' (or, on many systems, unit 6 without an OPEN)?
For example, the tee program, or redirection using '>' on the command line?

Your solution is good for me in the case I want to have results only on a file.

In the other case I want to have results at the same time on the screen and on a file!!

Thanks for your ansver

Bernard Bru
.



Relevant Pages

  • Re: writing output listing onto screen (or not) and onto file
    ... Tim Prince wrote: ... Are you asking about facilities provided by most systems for redirecting output sent to '*'? ... An an other time I want only output on file (for me it is easier to visualize the output using vim editor) So I put in this case ...
    (comp.lang.fortran)
  • Re: writing output listing onto screen (or not) and onto file
    ... Bernard Bru wrote: ... Are you asking about facilities provided by most systems for redirecting output sent to '*'? ... For example, the tee program, or redirection using '>' on the command line? ...
    (comp.lang.fortran)
  • RE: Could I use assembly in FORTRAN
    ... In a previous article, "Tim Prince" wrote: ... The Salford compilers let you mix in assembly code ... >> any others with similar facilities. ...
    (comp.lang.fortran)