FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference 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

Yes


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
studentt
csqu
chisqu
!
! New service routines from Sun
%include input file name extension = 'i'
ss
ss4
riread
datent
! 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 2014 Software Validation Ltd. All rights reserved.