next | previous | forward | backward | up | top | index | toc | home
Macaulay2 > The Macaulay2 language > system facilities > load

load -- read Macaulay 2 commands

Description

load "f" -- reads and executes Macaulay 2 expressions found in the file named f.

The file is sought in the directory containing the file currently being loaded, if any, and then along the path, unless the name of the file begins with a slash (/). The file is read without echoing the input, printing the values, or incrementing the line number.

If one of the top level expressions in the file evaluates to the symbol end the reading of the file is stopped at that point.

See also