READ STATEMENTS:
The common format for the read statements is as shown bellow.
Format 1:
READ file-name RECORD [ INTO identifier ]
[ ; AT END imperative-statements ]
Format 2:
READ file-name RECORD [ INTO identifier ]
[ ; INVALID KEY imperative-statement ]
Format 3:
READ file-name [ NEXT ] RECORD [ INTO identifier ]
[ ; AT END imperative-statements ]
As usual, the READ statement reads a record of a file. The file should be open in either the input or I-O mode.