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

  • OpenWrite[" file "] opens a file to write output to it, and returns an OutputStream object.
  • OpenWrite deletes any existing contents in a file, and prepares to write output starting at the beginning of the file.
  • For output to pipes, OpenWrite and OpenAppend are equivalent.
  • See notes for OpenAppend.
  • See the Mathematica book: Section 2.11.3.


    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.