allstreams {Rstreams}R Documentation

Get All Open Streams

Description

Gets a vector containing all currently open binary stream files.

Usage

  allstreams()

Details

Only currently open streams will be returned.

Value

a vector of stream handles, of class "stream".

See Also

openstream

Examples

# Print a list of all open streams
allstreams()
# Close the second open stream
closestream(allstreams()[2])
# Close all streams
closestream('all')