Manual - Programming Up
 Contents   News   View 

Load Previous Next

Load

Load loads a Quantum source file.  (Load name) Read's and Evaluates all the expressions in Quantum source file name (a String ).  You may try the following exercise:  Create your own Quantum source file named "MyFib.q" in a personal directory of your own choosing, such as "C:\\MyDir" .  Using any plain text editor you like (e.g. Notepad or Emacs), put the definition of Fib into your file MyFib.q.  "Save" your changes, then Load your file MyFib.q into Quantum.  If the name of your personal directory is "C:\\MyDir" , then Evaluate (Load "C:\\MyDir\\MyFib.q") .  If Load succeeds, then Evaluating (Fib 5) should return 8.

Reference Manual: Programming



©2004-2024 Planet Quantum Kelly Roach