Prism 6.0 Reference Manual

file

Changes or displays the current source file.

SYNTAX

file [filename]

DESCRIPTION

Use the file command to set the current source file to filename. If you do not specify a file name, file prints the name of the current source file.


Note -

The tilde (~) is valid syntax for all file names.


Changing the current file causes the new file to be displayed in the source window. The scope pointer (-) in the line-number region moves to the current file to indicate the beginning of the new scope that Prism uses in identifying variables.

When list is invoked with an absolute file name, Prism searches for filename as specified. When invoked with a relative file name, Prism searches first in the directory where filename was compiled. Then, if filename is not found, Prism attempts to locate filename using the current-use list. For further information, see "use".


Note -

Because the scope pointer may be modified by this command, subsequent expression evaluation uses the resulting scope pointer for symbol resolution.