PRODUCTS
PURCHASE
FOR USERS
COMPANY
OUR SITES
DOCUMENTATION CENTER SEARCH
Mathematica
>
String Operations
>
Built-in
Mathematica
Symbol
Searching and Reading Strings
Tutorials »
|
Characters
See Also »
|
Low-Level File Operations
String Operations
More About »
StringToStream
StringToStream
["
string
"]
opens an input stream for reading from a string.
MORE INFORMATION
StringToStream
yields a stream of the form
InputStream
[
String
,
n
]
.
Operations like
Read
and
Find
work on streams returned by
StringToStream
.
You must use
Close
to close streams created by
StringToStream
.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Convert a string to a stream:
In[1]:=
Out[1]=
Read the first number from the stream object:
In[2]:=
Out[2]=
Read the next character from the stream:
In[3]:=
Out[3]=
Close the stream:
In[4]:=
Out[4]=
SEE ALSO
Characters
TUTORIALS
Searching and Reading Strings
MORE ABOUT
Low-Level File Operations
String Operations
New in 2
© 2008 Wolfram Research, Inc.