Next: FORMAT Statement / FMT=
Up: More Input and Output
Previous: READ 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
- < unit > is a number or *,
- < format > is a string or a FORMAT statement label,
- < int-variable > holds a return code, zero means no error,
- < label > is an executable statement label,
- < advance-mode > is 'YES' or `NO',
- < int-expr > is a record number (for direct access).
For example
WRITE(17,FMT='(I4)',IOSTAT=istat,ERR=10) ival
WRITE(*,'(A)',ADVANCE='NO') 'Yello'
For more information, click here
Next: FORMAT Statement / FMT=
Up: More Input and Output
Previous: READ Statement
©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997Not for commercial use.