next up previous contents
Next: WRITE Up: File I/O Previous: READ   Contents

READ example

The statements

    read(unit=10,fmt=20) a, b, c 
20  format(3(f7.2))
are equivalent to
read(unit=10,fmt=''(3(f7.2))'') a, b, c
Also, the following are equivalent statements
read(unit=5,fmt=*) a, b, c 
read(unit=*,fmt=*) a, b, c 
read *, a, b, c

Adrian Sandu 2001-08-26