此为 Mathematica 4 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.1)

WriteString

Usage

WriteString[channel,  ,  , ... ] 转换  为串,然后以序列形式写它们到指定的输出通道。


Notes

WriteString 使用  OutputForm
WriteString 允许你有效地创建字节流的文件。
WriteString在它产生的的输出结尾并不放一个新行。
• 参见注释 Write.
• 参见Mathematica 全书: 2.11.3.
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]:=