1 2 3 4 5 6 7 8 9 10
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Laden von Programmen</title><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="index.html" title="Genius-Handbuch"><link rel="up" href="ch07.html" title="Chapter 7. Fortgeschrittene Programmierung mit GEL"><link rel="prev" href="ch07s05.html" title="GEL Startprozedur"><link rel="next" href="ch08.html" title="Chapter 8. Matrizen in GEL"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Laden von Programmen</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch07s05.html">Prev</a> </td><th width="60%" align="center">Chapter 7. Fortgeschrittene Programmierung mit GEL</th><td width="20%" align="right"> <a accesskey="n" href="ch08.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="genius-gel-loading-programs"></a>Laden von Programmen</h2></div></div></div><p lang="en">
Sometimes you have a larger program you wrote into a file and want to read that file into <span class="application">Genius Mathematics Tool</span>. In these situations, you have two options. You can keep the functions you use most inside the <code class="filename">~/.geniusinit</code> file. Or if you want to load up a file in a middle of a session (or from within another file), you can type <span class="command"><strong>load <list of filenames></strong></span> at the prompt. This has to be done on the top level and not inside any function or whatnot, and it cannot be part of any expression. It also has a slightly different syntax than the rest of genius, more similar to a shell. You can enter the file in quotes. If you use the '' quotes, you will get exactly the string that you typed, if you use the "" quotes, special characters will be unescaped as they are for strings. Example:
</p><pre lang="en" class="programlisting">load program1.gel program2.gel
load "Weird File Name With SPACES.gel"
</pre><p lang="en">
There are also <span class="command"><strong>cd</strong></span>, <span class="command"><strong>pwd</strong></span> and <span class="command"><strong>ls</strong></span> commands built in. <span class="command"><strong>cd</strong></span> will take one argument, <span class="command"><strong>ls</strong></span> will take an argument that is like the glob in the UNIX shell (i.e., you can use wildcards). <span class="command"><strong>pwd</strong></span> takes no arguments. For example:
</p><pre lang="en" class="programlisting">cd directory_with_gel_programs
ls *.gel
</pre><p lang="en">
</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch07s05.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch07.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch08.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">GEL Startprozedur </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 8. Matrizen in GEL</td></tr></table></div></body></html>
|