Create a new file called MapleEx.txt and copy all subsequently entered Maple commands and results into the file.
>

$\mathrm{currentdir}\left(\right)\:$

>

$\mathrm{writeto}\left(''MapleEx.txt''\right)$

>

$\frac{\ⅆ}{\ⅆx}\left({x}^{3}{x}^{2}\right)$

>

$\mathrm{writeto}\left(\mathrm{terminal}\right)$

The standard mode of printing the results on the terminal has been restored.
>

$\mathrm{solve}\left(2{x}^{2}\+3x\+1\,x\right)$

${}\frac{{1}}{{2}}{\,}{}{1}$
 (1) 
The appendto command will not overwrite the contents of MapleEx.txt.
>

$\mathrm{appendto}\left(''MapleEx.txt''\right)$

>

$\genfrac{}{}{0ex}{}{\left({x}^{2}1\right)}{\phantom{x\=2}}\phantom{\rule[0.0ex]{0.3em}{0.0ex}}\phantom{\rule[0.0ex]{0.1em}{0.0ex}}\genfrac{}{}{0ex}{}{\phantom{\left({x}^{2}1\right)}}{x\=2}$
