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 / File Output /

Write

FilledSmallSquare Write[channel, , , ... ] writes the expressions in sequence, followed by a newline, to the specified output channel.

FilledSmallSquare The output channel can be a single file or pipe, or list of them, each specified by a string giving their name, or by an OutputStream object.

FilledSmallSquare Write is the basic Mathematica output function. Print and Message are defined in terms of it.

FilledSmallSquare If any of the specified files or pipes are not already open, Write calls OpenWrite to open them.

FilledSmallSquare Write does not close files and pipes after it finishes writing to them.

FilledSmallSquare By default, Write generates output in the form specified by the setting of the FormatType option for the output stream used.

FilledSmallSquare See Section 2.12.3.

FilledSmallSquare See also: Print, Export, Display, Message, Read, LinkWrite.

FilledSmallSquare New in Version 1.

Further Examples