Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > String Manipulation > String Operations > StringToStream >

StringToStream

StringToStream
opens an input stream for reading from a string.
Convert a string to a stream:
Read the first number from the stream object:
Read the next character from the stream:
Close the stream:
Convert a string to a stream:
In[1]:=
Click for copyable input
Out[1]=
Read the first number from the stream object:
In[2]:=
Click for copyable input
Out[2]=
Read the next character from the stream:
In[3]:=
Click for copyable input
Out[3]=
Close the stream:
In[4]:=
Click for copyable input
Out[4]=
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF