fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
PRIMARY INPUT FILE NAME EXTENSION
Syntax:
PRIMARY INPUT { FILE [NAME] | FILENAME } EXTENSION [:] <string>
Function:
Specifies the default input file name extension for primary Fortran files. In this context, a primary file is any Fortran source file which is not referenced in an INCLUDE statement.
The file name extension is written as a delimited or undelimited string, with or without a leading . (period) character.
This command is position sensitive in the command line or FSP file. It applies to all file names which follow it, and the default may be changed within a list of files.
If a sub-program 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 .for and a primary file is read with the name stats.bda, the corresponding output file name will be stats_bda.fpt. This behaviour is modified by the command KEEP FILE NAME EXTENSIONS.
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 Linux and Unix it is .f and for VMS and DOS it is .FOR. (Note that defaults may be changed in the configuration file)
See Also
Copyright ©1995 to 2025 Software Validation Ltd. All rights reserved.