PutAppend 
expr>>>filename
appends expr to a file.
PutAppend[expr1,expr2,…,"filename"]
appends a sequence of expressions expri to a file.
Examples
open all close allBasic Examples (1)
Append expression values at the end of a temporary file:
In[1]:= |
Create a directory for temporary files and change to that directory:
In[2]:= |
Put the value of x in a file:
In[3]:= |
Update x and append the new value to the file:
In[4]:= |
The file now contains the two values:
Append successive iterates to the file in a loop:
In[6]:= |
Reset to the original directory:
In[8]:= |
Scope (1)
Introduced in 1988
Updated in 2016
(1.0)
|
(11.0)