FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


INPUT FILE NAME EXTENSION

Syntax:

INPUT FILE NAME EXTENSION : <string>


Function:

Specifies the default extension for both primary files and INCLUDE files. The extension is written as a quoted or unquoted string, with or without a leading . (period) character.

Note that the default extensions for sub-program and for INCLUDE files may be set up separately by the commands

PRIMARY INPUT FILE NAME EXTENSION

INCLUDE INPUT FILE NAME EXTENSION

The extension is added to the names of files when no extension is specified, as in:

$ fpt anova intab sumsq

or

INCLUDE 'windtab'

If a file is read which has an extension which differs from the current default, the corresponding output file name is constructed by appending the extension to the base file name with a separating underscore. For example, if the default primary input file name extension is .for, and the primary output file name extension is .FPT, the input file ANOVA.F is rewritten to ANOVA_F.FPT. This behaviour is modified by the commands KEEP FILE NAME EXTENSIONS and MAXIMUM BASE FILE NAME LENGTH.

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 defaults are operating system dependent. Under VMS and Windows the default extension is .FOR. Under Linux and Unix it is .f (Note that defaults may be changed in the configuration file).

Examples:

Command Line

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

FSP file

%input file name extension = 'ftn'

See also:

INCLUDE INPUT FILE NAME EXTENSION

KEEP FILE NAME EXTENSIONS

MAXIMUM BASE FILE NAME LENGTH

PRIMARY INPUT FILE NAME EXTENSION


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