Include a file: Difference between revisions

Content added Content deleted
(Add Seed7 example)
(Added Maple implementation)
Line 153: Line 153:


<lang lua> require "myheader" </lang>
<lang lua> require "myheader" </lang>

=={{header|Maple}}==
For textual inclusion, analogous to the C preprocessor, use the "$include" preprocessor directive. (The preprocessor is not a separate program, however.) This is frequently useful for large project development.
<lang Maple>$include <somefile></lang>
Or
<lang Maple>$include "somefile"</lang>
It is also possible to read a file, using the "read" statement. This has rather different semantics.
<lang Maple>read "somefile":</lang>


=={{header|Mathematica}}==
=={{header|Mathematica}}==