({{, (RefLink[InputStream, paclet:ref/InputStream])["name",n]
is an object that represents an input stream for functions such as (RefLink[Read, paclet:ref/Read]) and (RefLink[Find, paclet:ref/Find]). }})

OpenersNotesSection(Spacer1)Details

(RefLink[OpenRead, paclet:ref/OpenRead]) returns an (RefLink[InputStream, paclet:ref/InputStream]) object.

The serial number n is unique across all streams, regardless of their name.

(RefLink[StringToStream, paclet:ref/StringToStream]) returns an object of the form (RefLink[InputStream, paclet:ref/InputStream])[(RefLink[String, paclet:ref/String]),n].

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

(RefLink[StringToStream, paclet:ref/StringToStream]) opens an input stream:

str=StringToStream["123456789"]

List of input streams that are currently opened:

Cases[Streams[], _InputStream]

Use (RefLink[Close, paclet:ref/Close]) to close streams:

Close[str]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[$Input, paclet:ref/$Input])  ▪  (RefLink[$InputFileName, paclet:ref/$InputFileName])  ▪  (RefLink[Streams, paclet:ref/Streams])  ▪  (RefLink[OutputStream, paclet:ref/OutputStream])  ▪  (RefLink[OpenRead, paclet:ref/OpenRead])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Streams and Low-Level Input and Output, paclet:tutorial/StreamsAndLowLevelInputAndOutput])}, {▪(RefLinkPlain[Files and Streams, paclet:tutorial/FilesAndStreams])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Low-Level File Operations, paclet:guide/LowLevelFileOperations])}})}})