This is documentation for Mathematica 5, 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 /


FilledSmallSquare OpenWrite["file"] opens a file to write output to it, and returns an OutputStream object.

FilledSmallSquare OpenWrite deletes any existing contents in a file, and prepares to write output starting at the beginning of the file.

FilledSmallSquare For output to pipes, OpenWrite and OpenAppend are equivalent.

FilledSmallSquare See notes for OpenAppend.

FilledSmallSquare See Section 2.12.3.

FilledSmallSquare New in Version 1.