General::strmn
Details
-
- This message is generated when a duplicate stream number is encountered during input or output.
- Streams are assigned a unique number when they are opened. An error occurs if the same number is used with a different stream.
- This error can occur when entering InputStream and OutputStream expressions.
- The InputStream and OutputStream expressions returned by functions such as OpenAppend, OpenRead, OpenWrite, and StringToStream are generally valid and should be used whenever practical, rather than entering a new InputStream or OutputStream expression.
- Off[message] switches off the message; On[message] switches it on. For example: Off[General::strmn].
Examples
Basic Examples (1)
The stream number is the second element in the resulting InputStream expression:
Attempting to read from a stream with the same number but with a different name will generate an error:


