Re: $include to read maple procedures from txt files
From: Robert Israel (israel_at_math.ubc.ca)
Date: 07/14/04
- Previous message: Richard Fateman: "Re: Fundamentals of the Mathematica Programming Language note set by Richard J. Gaylord available"
- In reply to: Christian: "$include to read maple procedures from txt files"
- Messages sorted by: [ date ] [ thread ]
Date: 14 Jul 2004 15:43:49 GMT
In article <invhlvr46b47@legacy>, Christian <mbacm@web.de> wrote:
>I'm Maple 8 and trying to use the $include command of maple in the
>"command line version" to read procedures from a txt-files. My
>intention is to save these procedures afterwards in a module-based
>package. The result of the "$include" should be the same as if I use
>the "read" command in the "graphical maple version".
>My problem is, that I don't know how to use the $include command for
>this purpose. The online help only provides little information about
>this. I tried:
>From the help page ?preprocessor:
IMPORTANT: The preprocessor works only on files being read from the
standard input stream (that is, input redirected into the command-line
version of Maple by the "<" or "|" facilities provided by UNIX and
Windows shells). The preprocessor is not available in graphical interface
versions of Maple, nor is it available when input is typed on the Maple
command line.
>> $include "C:/temp/myfile.txt"
>but this does not work. It seems to me that the command lind expects
>further commands.
It sounds like you're trying to use this from the Maple command line,
which the help file says doesn't work. If you're not using redirection,
i.e. you're not invoking Maple with a line such as
maple < myinput.txt
then you shouldn't be using $include. Instead, use "read", just as
you would in a graphical interface.
Robert Israel israel@math.ubc.ca
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia
Vancouver, BC, Canada V6T 1Z2
- Previous message: Richard Fateman: "Re: Fundamentals of the Mathematica Programming Language note set by Richard J. Gaylord available"
- In reply to: Christian: "$include to read maple procedures from txt files"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|