DOCUMENTATION CENTER SEARCH
Mathematica
>
Low-Level File Operations
>
Built-in
Mathematica
Symbol
Streams and Low-Level Input and Output
Tutorials »
|
Print
Export
BinaryWrite
Message
Read
LinkWrite
PutAppend
WriteString
RunThrough
Splice
See Also »
|
Basic Input & Output in Programs
External Operations
Files
Importing & Exporting
Low-Level File Operations
More About »
Write
Write
[
channel
,
expr
1
,
expr
2
,
...
]
writes the expressions
expr
i
in sequence, followed by a newline, to the specified output channel.
MORE INFORMATION
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.
Write
is the lowest-level
Mathematica
output function. Functions like
Print
and
Message
are defined in terms of it.
If any of the specified files or pipes are not already open,
Write
calls
OpenWrite
to open them.
Write
does not close files and pipes after it finishes writing to them.
By default,
Write
generates output in the form specified by the setting of the
FormatType
option for the output stream used.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Open a stream:
In[1]:=
Out[1]=
Write
to the stream:
In[2]:=
Close the stream:
In[3]:=
Out[3]=
Read the file:
In[4]:=
SEE ALSO
Print
Export
BinaryWrite
Message
Read
LinkWrite
PutAppend
WriteString
RunThrough
Splice
TUTORIALS
Streams and Low-Level Input and Output
MORE ABOUT
Basic Input & Output in Programs
External Operations
Files
Importing & Exporting
Low-Level File Operations
New in 1
© 2008 Wolfram Research, Inc.