Input/output formatting

Writing to or reading from a file is similar to writing onto a terminal screen or reading from a keyboard. Differences are:

File opening and closing


The syntax is:
OPEN([unit=]lunit,file='name' [,options])
CLOSE([unit=]lunit [,options])
For example:
OPEN(10, file='output.dat', status='new')
CLOSE(unit=10)