WWW | Store | Account | Contact Us
SHAZAM Homepage

FILE

The FILE command is used to perform file and folder operations. The format of the FILE command is: FILE option filename where option can be either a keyword as listed below or a unit number. The FILE command is used to specify a particular action for a file, or assign a search path, or assign units to files. This command is described in the chapter DATA INPUT AND OUTPUT in the SHAZAM Reference Manual.

In general, the format is:

FILE option filename

where option can be either a keyword as listed below or a unit number.

OPTION DESCRIPTION
cd Change the current directory to the specified folder (or directory).
close Closes the specified filename. This is usually only needed if you wish to re-assign a file for another purpose.
delete Delete the specified filename.
helpdemo Specifies a directory path for the SHAZAM HELP and DEMO files.
input Reads SHAZAM commands from filename.
keyboard Makes a copy of all commands typed on a keyboard and writes them into filename.
list Lists the specified filename on the screen.
output Puts the output in the assigned filename. If used, this is often the first FILE command. No output will appear on the screen.
path Specifies a directory path to append to all filenames used in subsequent FILE, READ or WRITE commands or for gnuplot files.
plotpath Specifies a directory path for the gnuplot program.
procpath Specifies a directory path to use to search for SHAZAM procedures.
pwd Print working directory. This command displays the pathname of the current folder (or directory).
screen Puts the output in the assigned filename and simultaneously displays the output on the computer screen. Alternative to FILE OUTPUT command.
temp Specifies a directory path to use for creating and writing to temporary scratch files.
print Prints the specified filename on a printer (may not work on all computers).
proc Loads a SHAZAM procedure from the specified filename.