24.11.2014 Views

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>FORTRAN</strong> Statements<br />

2.69 READ Statement<br />

Three forms of the READ statement are supported by <strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong>.<br />

2.69.1 Standard READ Statement<br />

<br />

READ (cilist) [ilist]<br />

READ f [,ilist]<br />

where:<br />

cilist<br />

is a control information list of specifiers separated by commas:<br />

[UNIT =] u<br />

[FMT =] f<br />

REC = rn<br />

IOSTAT = ios<br />

ERR = s<br />

END = s<br />

f<br />

ilist<br />

is a format identifier.<br />

is an optional input list.<br />

2.69.2 Extended READ Statement<br />

READ, ilist<br />

where:<br />

ilist<br />

is an input list.<br />

2.69.3 Description of READ Statement<br />

The READ statement is used to transfer data from a device or file into the executing <strong>FORTRAN</strong> program.<br />

As shown above, <strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong> supports three forms of the READ statement.<br />

Control Information List and Format Identifier<br />

[UNIT =] u<br />

u is an external unit identifier or an internal file identifier.<br />

1. An external unit identifier is a non-negative integer expression or an asterisk<br />

(*) in which case unit 5 is assumed.<br />

READ Statement 123

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!