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)$

>

$\mathrm{diff}\left({x}^{3}{x}^{2}\,x\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}}{,}{\mathrm{1}}$
 (1) 
The appendto command will not overwrite the contents of MapleEx.txt.
>

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

>

$\mathrm{eval}\left({x}^{2}1\,x=2\right)$
