fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

INCLUDE INPUT FILE NAME EXTENSION

Syntax:

INCLUDE INPUT { FILE [NAME] | FILENAME } EXTENSION [:] <string>

Function:

Specifies the default input file name extension for INCLUDE files.

The file name extension is written as a delimited or undelimited string, with or without a leading . character.

This command is position sensitive in the command line or fsp file. It applies to all files which follow it, and the default may be changed within a list of files.

If an INCLUDE input file has an extension which differs from the default, note that the extension is appended to the base file name with a separating underscore character. For example, if the default input file name extension is .inc and an INCLUDE file is read with the name aero.par, the corresponding output file name will be aero_par.fpi This behaviour is modified by the commands KEEP FILE NAME EXTENSIONS and MAXIMUM BASE FILE NAME LENGTH.

The command PRIMARY INPUT FILE NAME EXTENSION sets the default input file name extension for primary files. The command INPUT FILE NAME EXTENSION sets the default input file name extension for both primary and INCLUDE files.

The file name extensions of the output files written by fpt are specified by the commands: OUTPUT FILE NAME EXTENSION, PRIMARY OUTPUT FILE NAME EXTENSION and INCLUDE OUTPUT FILE NAME EXTENSION.

Where to Use this Command

Operating system command line Yes
Configuration file, config.fsp Yes
Specification (fsp) files, *.fsp Yes
Interactively, to FPT> prompt No
Interactive command files No
Embedded in the Fortran code No

Default

The default is system-specific. For VMS and DOS it is .FOR and for UNIX .f. (Note that defaults may be changed in the configuration file)

Examples:

Command Line:

$ fpt "%include input file name extension:.f" anova.fsp

fsp file:

! anova.fsp ! Original PDP package %include input file name extension = 'ftn' anova.ftn studentt.ftn csqu.ftn chisqu.ftn ! ! New service routines from Sun %include input file name extension = 'i' ss.i ss4.i riread.i datent.i ! end of anova.fsp

See Also

INCLUDE OUTPUT FILE NAME EXTENSION

INPUT FILE NAME EXTENSION

KEEP FILE NAME EXTENSIONS

MAXIMUM BASE FILE NAME LENGTH

PRIMARY INPUT FILE NAME EXTENSION

PRIMARY OUTPUT FILE NAME EXTENSION

OUTPUT FILE NAME EXTENSION

Copyright ©1995 to 2024 Software Validation Ltd. All rights reserved.