This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

PutAppend


appends expr to a file.
PutAppend
appends a sequence of expressions to a file.
  • PutAppend works the same as Put, except that it adds output to the end of the file, rather than replacing the complete contents of the file.
Append expression values at the end of a temporary file:
Create a directory for temporary files and change to that directory:
Put the value of in a file:
Update and append the new value to the file:
The file now contains the two values:
Append successive iterates to the file in a loop:
Reset to the original directory:
Append expression values at the end of a temporary file:
In[1]:=
Click for copyable input
Create a directory for temporary files and change to that directory:
In[2]:=
Click for copyable input
Put the value of in a file:
In[3]:=
Click for copyable input
Update and append the new value to the file:
In[4]:=
Click for copyable input
The file now contains the two values:
Append successive iterates to the file in a loop:
In[6]:=
Click for copyable input
Reset to the original directory:
In[8]:=
Click for copyable input
New in 1