WriteString
Usage
• WriteString[channel, , , ... ] 转换  为串,然后以序列形式写它们到指定的输出通道。
Notes
• WriteString 使用  的 OutputForm。 • WriteString 允许你有效地创建字节流的文件。 • WriteString在它产生的的输出结尾并不放一个新行。
Further Examples
This opens a stream to a file tempw.
In[1]:=
|
Out[1]=
|
This writes two strings to the stream.
In[2]:=
|
This writes another string to the stream.
In[3]:=
|
This closes the stream.
In[4]:=
|
Out[4]=
|
Here are the contents of the file. The strings were written exactly as specified, including only the newline characters that were explicitly given.
In[5]:=
|
|