Mathematica 9 is now available

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]:=  




Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.