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

PutAppend (>>>)

expr>>>filename
appends expr to a file.
PutAppend[expr1, expr2, ..., "filename"]
appends a sequence of expressions expri 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:
In[1]:=
Click for copyable input
Set the directory to one for temporary files:
In[2]:=
Click for copyable input
Put the value of x in a file:
In[3]:=
Click for copyable input
Update x 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