fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

INPUT FILE NAME EXTENSION

Syntax:

INPUT FILE NAME EXTENSION : <string>

Function:

Specifies the default input 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.

The command is position-sensitive on the command-line or in an fsp file, and applies to the files which follow it. Multiple occurrences of the command may be written.

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 (Case insensitive). 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

In an 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 2024 Software Validation Ltd. All rights reserved.