Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Files > Mathematica Expressions in Files > PutAppend (>>>) >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF