WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

DeviceStreams [device]

gives a list of all open streams associated with a device.

DeviceStreams [device,patt]

gives a list of streams whose names match the string pattern patt.

DeviceStreams [device,{patt1,patt2,}]

gives a list of streams whose names match any of the patti.

Details
Details and Options Details and Options
Examples  
Basic Examples  
Properties & Relations  
See Also
Tech Notes
Related Guides
History
Cite this Page

DeviceStreams [device]

gives a list of all open streams associated with a device.

DeviceStreams [device,patt]

gives a list of streams whose names match the string pattern patt.

DeviceStreams [device,{patt1,patt2,}]

gives a list of streams whose names match any of the patti.

Details

  • A device can be specified either by a DeviceObject or by a string representing a device class.
  • Streams are automatically opened when a device is opened and are closed when it is closed.
  • DeviceStreams can return InputStream or OutputStream objects.

Examples

open all close all

Basic Examples  (2)

Open a demo device and list its open streams:

Look up streams by pattern:

Look up streams by a list of patterns:

Read a list of bytes from an input stream associated with a device:

Close the device:

Properties & Relations  (1)

Input and output streams associated with a device are included in Streams :

DeviceClose closes any streams to and from the device:

Tech Notes

Wolfram Research (2014), DeviceStreams, Wolfram Language function, https://reference.wolfram.com/language/ref/DeviceStreams.html.

Text

Wolfram Research (2014), DeviceStreams, Wolfram Language function, https://reference.wolfram.com/language/ref/DeviceStreams.html.

CMS

Wolfram Language. 2014. "DeviceStreams." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DeviceStreams.html.

APA

Wolfram Language. (2014). DeviceStreams. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DeviceStreams.html

BibTeX

@misc{reference.wolfram_2025_devicestreams, author="Wolfram Research", title="{DeviceStreams}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/DeviceStreams.html}", note=[Accessed: 16-November-2025]}

BibLaTeX

@online{reference.wolfram_2025_devicestreams, organization={Wolfram Research}, title={DeviceStreams}, year={2014}, url={https://reference.wolfram.com/language/ref/DeviceStreams.html}, note=[Accessed: 16-November-2025]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /