INCLUDE_FILES
Explicitly Include Files


INCLUDE_FILES is a FORTRAN90 program which makes a copy of a FORTRAN file, in which INCLUDE statements are replaced by the corresponding include files.

The format for a FORTRAN include statement is either


        include 'file.txt'
      
or

        include "file.txt"
      
This program reads a file with such include statements, and replaces each such occurrence by the text of the corresponding file.

Usage:

include_files file1.f file2.f
reads the file file1.f and creates a copy file2.f with all available INCLUDE files included.
include_files
asks the user for the names of the files file1.f and file2.f.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Languages:

INCLUDE_FILES is available in a FORTRAN90 version.

Related Data and Programs:

CATALOG, a C++ program which reads a C, C++, FORTRAN77 or FORTRAN90 program and prints every line that begins with a special index tag. If the program has been marked up expecting this convention, it is a handy way of making a table of contents of a program file.

EXTRACT, a FORTRAN90 program which extracts a subroutine, function or module by name from a FORTRAN77 or FORTRAN90 file.

F77SPLIT, a C program which reads a FORTRAN77 file and creates individual files for every subroutine or function in the file.

F90SPLIT, a FORTRAN90 program which reads a FORTRAN90 file and creates individual files for every subroutine or function in the file.

FIXCON, a FORTRAN90 program which reads a FORTRAN file that uses FORTRAN77 continuation statements, and makes a copy that uses FORTRAN90 continuation instead.

HTMLINDEX, a C++ program which reads a FORTRAN77 or FORTRAN90 program and writes a skeleton HTML page describing it, assuming that each subroutine includes a '!!' or 'cc' description line.

MODULE_MARK, a FORTRAN90 program which replaces bare "END" statements by "END (module name)" statements in a FORTRAN90 file.

Source Code:

Examples and Tests:

List of Routines:

You can go up one level to the FORTRAN90 source codes.


Last revised on 30 August 2005.