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

Documentation / Mathematica / Built-in Functions / Input and Output / Basic Operations /

Further Examples: PutAppend (>>>)

First we create a file tempputa.

In[1]:=

Here are the contents of the file tempputa.

In[2]:=

"a^3 + 3*a^2*b + 3*a*b^2 + b^3"

This appends an expression to the existing file.

In[3]:=

Here are the new contents of the file tempputa.

In[4]:=

"a^3 + 3*a^2*b + 3*a*b^2 + b^3

a^4 + 4*a^3*b + 6*a^2*b^2 + 4*a*b^3 + b^4"