next up previous contents
Next: FORMAT Statement / FMT= Up: More Input and Output Previous: READ Statement

 

WRITE Statement

Can interchange READ and WRITE in the following. Not all the specifiers can be used at the same time,

 
WRITE([UNIT=]< unit >, [FMT=]< format >, &

IOSTAT=< int-variable >, ERR=< label >, &

ADVANCE=< advance-mode >, &

REC=< int-expr >) < output-list >

where For example
  WRITE(17,FMT='(I4)',IOSTAT=istat,ERR=10) ival
  WRITE(*,'(A)',ADVANCE='NO') 'Yello'

For more information, click here gif


next up previous contents
Next: FORMAT Statement / FMT= Up: More Input and Output Previous: READ Statement

©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997
Not for commercial use.