fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

FILE NAME

Syntax:

!% FILE NAME [:] [:] <symbol> [ , <symbol> ... ]

Function:

Specifies that the named sub-program arguments are file names. fpt uses this information when inserting subroutines or functions to translate file name formats (See INSERT SUBROUTINE TO TRANSLATE FILE NAMES and INSERT FUNCTION TO TRANSLATE FILE NAMES).

Names which contain exotic characters such as '%', ':' or '#' (which are all legal on some systems) must be written as quoted strings.

The %FILE NAME command must be written in code within the scope of declaration of the variable.

Where to Use this Command

Operating system command line No
Configuration file, config.fsp No
Specification (fsp) files, *.fsp No
Interactively, to FPT> prompt No
Interactive command files No
Embedded in the Fortran code Yes

Default

By default arguments are assumed not to be file names.

Examples

SUBROUTINE SEARCHFILE(FILEA,STRINGA) CHARACTER*(*) FILEA,STRINGA !% FILE NAME :: FILEA

See Also

INSERT FUNCTION TO TRANSLATE FILE NAMES

INSERT SUBROUTINE TO TRANSLATE FILE NAMES

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