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 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
writefile to save the display of previous interactions. As
playback displays only the input and output variables (
%o1, etc.), any output generated by a print statement in a function (as opposed to a return value) is not displayed by
closefile closes the transcript file opened by
(%o1) true (%i2)