$INCLUDE Statement - Fortran

The $INCLUDE statement includes source lines from secondary files in the current primary source program. This feature is especially useful when two or more separately compiled source programs require an identical sequence of source statements (for example, data declaration statements).

The form of the $INCLUDE statement is

$INCLUDE filename

where filename is either an absolute or relative UNIX file name. If the filename is relative and no file exists by that name relative to the current working directory, an error is given and no attempt is made to search an alternative path. The material introduced into the source program by the $INCLUDE statement will follow the $INCLUDE statement, beginning on the next line. Nesting of $INCLUDE statements is permitted within the constraints of the operating system.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Fortran Topics