General::strmi

Details

  • This message is generated when the first argument in InputStream or OutputStream is neither a string representing the name of a file nor an identifier for a string that is used as a stream.
  • This message is normally seen only when attempting to enter InputStream or OutputStream expressions explicitly, rather than using the expressions that have been generated by the Wolfram Language.
  • Off[message] switches off the message; On[message] switches it on. For example: Off[General::strmi].

Examples

Basic Examples  (1)

The first argument in OutputStream is not a string:

Output can be written to the open stream by giving the name of the file or by using the corresponding OutputStream expression:

Close the stream and delete the file: