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

Put (>>)

Updated In 6 Graphic
expr>>filename
writes expr to a file.
Put[expr1, expr2, ..., "filename"]
writes a sequence of expressions expri to a file.
Put["filename"]
creates an empty file with the specified name.
  • Put starts writing output at the beginning of the file. It deletes whatever was previously in the file.
  • Put inserts a newline (line feed) at the end of its output.
  • expr>>filename is equivalent to expr>>"filename". The double quotes can be omitted if the file name is of the form specified in Operator Input Forms.
  • It is conventional to use names that end with .m for files containing Mathematica input.
New in 1 | Last modified in 6