FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


OUTPUT FILE NAME EXTENSION

Syntax:

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

Function:

Specifies the file name extension for Fortran output files. If this command is made, the same extension is used for both primary files and for INCLUDE files. Different extensions may be specified by the commands PRIMARY OUTPUT FILE NAME EXTENSION and INCLUDE OUTPUT FILE NAME EXTENSION, and this practice is recommended. The extension is written as a string, and may, but need not be preceded by a . (period) character.

Note that some Unix compilers require that the file name extension is .f. If the file name extension is the same for the input and output files it is recommended that the output is written to a different directory, specified, for example, by the OUTPUT DIRECTORY command.

Where to use this command:

Operating system command line

Yes


Configuration file, config.fsp

Yes


Specification (FSP) files, *.fsp

Yes


Interactively, to FPT> prompt:

Yes


Interactive command files

Yes


Embedded in the Fortran code

Yes


Default:

The default is .fpt for primary files and .fpi for INCLUDE files, written in lower case under Unix (Note that defaults may be changed in the configuration file).

Example:

$ fpt stats anova ind %output_filename_extension:'.f'

See also:

INCLUDE OUTPUT FILE NAME EXTENSION

PRIMARY OUTPUT FILE NAME EXTENSION

OUTPUT DIRECTORY


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