READFILE: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Keyword| <code>READFILE { string }</code> | 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 r...") |
No edit summary |
||
Line 6: | Line 6: | ||
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. | 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. | ||
| | | | ||
Windows: <code>%%ii READFILE {"C:/Documents/1.imath"}</code> | |||
Ubuntu: <code>%%ii READFILE {"/home/user/Documents/1.imath"}</code> | |||
| | | | ||
}} | }} | ||
[[Category:Management]] | [[Category:Management]] |
Latest revision as of 16:34, 12 July 2017
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"}