/load

Usage:

/LOAD file
/REQUIRE file


Reads and executes commands from file. /Load and /require are identical, except that if file is a library file and has already been read once, /require will not read it again.

The file may contain any legal TinyFugue commands. Blank lines and lines beginning with ';' are ignored. Any leading whitespace on a line is stripped. Any line ending in '\' will have the following line joined to it (after leading spaces are stripped). A '%' preceding a '\' eliminates its special meaning.

The file name is expanded as described under "filenames".

If the expanded filename is not an absolute path name, TF will search first in the current directory (which can be changed with /lcd), and then in %{TFLIBDIR}. If the COMPRESS_SUFFIX and COMPRESS_READ macros are defined, the file will be automatically uncompressed if needed.

Loaded files may be given any name, but names ending in ".tf" are recommended.

The standard macro library also defines the commands /loaddef, /loadbind, /loadhilite, /loadgag, /loadtrig, /loadhook, and /loadworld. These macros will load from a default file if no file is specified.

See: macros, library, /def, /save, /require, /lcd, filenames


Back to index
Back to tf home page
Copyright © 1995, 1996, 1997 Ken Keys