Maxima Function
writefile (filename)
Begins writing a transcript of the Maxima session to filename. All interaction between the user and Maxima is then recorded in this file,
just as it appears on the console.
As the transcript is printed in the console output format,
it cannot be reloaded into Maxima.
To make a file containing expressions which can be reloaded,
see save
and stringout
.
save
stores expressions in Lisp form, while stringout
stores expressions in Maxima form.
The effect of executing writefile
when filename already exists
depends on the underlying Lisp implementation;
the transcript file may be clobbered, or the file may be appended.
appendfile
always appends to the transcript file.
It may be convenient to execute playback
after
writefile
to save the display of previous interactions.
As playback
displays only the input and output variables (%i1
, %o1
, etc.),
any output generated by a print statement in a function
(as opposed to a return value) is not displayed by playback
.
closefile
closes the transcript file opened by writefile
or appendfile
.