READFILE

From iMath
Revision as of 16:34, 12 July 2017 by Jrheinlaender (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax

READFILE { string }


Implemented in iMath since version 2.2.0 or earlier.

Explanation

Open the given file and parse the iMath commands in this file. This command can be used to put common formulas in a file to re-use them. At the moment, the path is operating system dependent! In other words, you cannot use an Office URL.

You can use relative paths. Specifically, if the file is in the same directory as the main document, it is sufficient to use the file name only without any path.


Example

Windows: %%ii READFILE {"C:/Documents/1.imath"}

Ubuntu: %%ii READFILE {"/home/user/Documents/1.imath"}


See also