This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

InputStream

InputStream["name", n]
is an object that represents an input stream for functions such as Read and Find.
  • The serial number n is unique across all streams, regardless of their name.
StringToStream opens an input stream:
List of input streams that are currently opened:
Use Close to close streams:
StringToStream opens an input stream:
In[1]:=
Click for copyable input
Out[1]=
List of input streams that are currently opened:
In[2]:=
Click for copyable input
Out[2]=
Use Close to close streams:
In[3]:=
Click for copyable input
Out[3]=
New in 2