Sun Studio 12: Fortran Programming Guide

2.7 Legacy I/O Considerations

Fortran 95 and legacy Fortran 77 programs are I/O compatible. Executables containing intermixed f77 and f95 compilations can do I/O to the same unit from both the f77 and f95 parts of the program.

However, Fortran 95 provides some additional features:


       write(*,’(a)’,ADVANCE=’NO’)  ’Enter size= ’
       read(*,*) n

See the Fortran User’s Guide for additional information about Fortran 95 I/O extensions and compatibility between f95 and f77.