6.5. Reading Scheme Source Files

A Scheme source file can be loaded in three ways: through the menu system as a scheme file, through the menu system as a journal file, or through Scheme itself.

For large source files, use the Select File dialog box invoked by selecting the File > Read > Scheme... menu item or the Scheme load function.

> (load "file.scm")

Shorter files can also be loaded with File > Read > Journal... or the file/read-journal command in the text interface (or its . or source alias).

> . file.scm

> source file.scm 

In this case, each character of the file is echoed to the console as it is read in the same way as if you were typing the contents of the file.


Release 18.2 - © ANSYS, Inc. All rights reserved.