This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Input and Output / File Output  /

  • expr >>> filename appends expr to a file.
  • PutAppend[ , , ... , " filename "] 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.
  • See the Mathematica book: Section 1.11.1Section 2.11.1.
  • See also: Write.

    Further Examples

    First we create a file tempputa.


    Here are the contents of the file tempputa.


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

    This appends an expression to the existing file.


    Here are the new contents of the file tempputa.


    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