next up previous contents
Next: WRITE Statement Up: More Input and Output Previous: OPEN Statement

 

READ Statement

Not all the specifiers can be used at the same time,

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

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

EOR=< label >, ADVANCE=< advance-mode >, &

REC=< int-expr >, SIZE=< num-chars >) < output-list >

where For example
  READ(14,FMT='(3(F10.7,1x))',REC=iexp) a,b,c
  READ(*,'(A)',ADVANCE='NO',EOR=12,SIZE=nch) str

For more information, click here gif


next up previous contents
Next: WRITE Statement Up: More Input and Output Previous: OPEN Statement

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