Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Input and Output / File Output  /
Close

  • Close[ stream ] closes a stream.
  • The argument to Close can be an InputStream or OutputStream object.
  • If there is only one stream with a particular name, the argument to close can be " name ".
  • See the Mathematica book: Section 2.11.3.
  • See also: OpenAppend, SetOptions, Streams.

    Further Examples

    This opens an output stream for the file strings.

    In[1]:=

    Out[1]=

    This closes the stream.

    In[2]:=

    Out[2]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.