LF Fortran 95

INCLUDE Line

Description

The INCLUDE line causes text in a separate file to be processed as if the text replaced the INCLUDE line. The INCLUDE line is not a Fortran statement.

Syntax

INCLUDE filespec
Where:

filespec is a CHARACTER literal constant that corresponds to a path and

file that contains source text to replace the INCLUDE line.

Remarks

The INCLUDE line must be the only non-blank text on this source line other than an optional trailing comment. A statement label or additional statements are not allowed on the line.

The include line is processed by the compiler, not by a preprocessor.

Example

include "types.for" ! include a file named types.for ! in place of this INCLUDE line