InputStream["name",n]
is an object that represents an input stream for functions such as Read and Find.


InputStream
InputStream["name",n]
is an object that represents an input stream for functions such as Read and Find.
Details

- OpenRead returns an InputStream object.
- The serial number n is unique across all streams, regardless of their name.
- StringToStream returns an object of the form InputStream[String,n].
Examples
Basic Examples (1)
StringToStream opens an input stream:
List of input streams that are currently opened:
Use Close to close streams:
See Also
Tech Notes
Related Guides
History
Introduced in 1991 (2.0)
Text
Wolfram Research (1991), InputStream, Wolfram Language function, https://reference.wolfram.com/language/ref/InputStream.html.
CMS
Wolfram Language. 1991. "InputStream." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/InputStream.html.
APA
Wolfram Language. (1991). InputStream. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/InputStream.html
BibTeX
@misc{reference.wolfram_2025_inputstream, author="Wolfram Research", title="{InputStream}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/InputStream.html}", note=[Accessed: 08-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_inputstream, organization={Wolfram Research}, title={InputStream}, year={1991}, url={https://reference.wolfram.com/language/ref/InputStream.html}, note=[Accessed: 08-August-2025]}