This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Documentation / Mathematica / Built-in Functions / New in Version 4.x / Input and Output /

Export

FilledSmallSquare Export["file.ext", expr] exports data to a file, converting it to a format corresponding to the file extension ext.

FilledSmallSquare Export["file", expr, "format"] exports data to a file, converting it to the specified format.

FilledSmallSquare Export can handle numerical and textual data, graphics, sounds, material from notebooks, and general expressions in various formats.

FilledSmallSquare The following basic formats are supported for numerical and textual data:

FilledSmallSquare In "CSV", "List" and "Table" format, numbers are written in C or Fortran-like "E" notation when necessary.

FilledSmallSquare In "CSV" format, columns are separated by commas, unless other settings are specified using ConversionOptions.

FilledSmallSquare In "Table" format, columns are separated by spaces.

FilledSmallSquare Export["file.txt", expr] uses "Text" format.

FilledSmallSquare Export["file.dat", expr] uses "Table" format.

FilledSmallSquare The following additional formats are also supported for numerical and textual data:

FilledSmallSquare All graphics formats in Export can handle any type of 2D or 3D Mathematica graphics.

FilledSmallSquare They can also handle Notebook and Cell objects.

FilledSmallSquare In some formats, lists of frames for animated graphics can be given.

FilledSmallSquare The following options can be given when exporting graphics:

FilledSmallSquare The following graphics formats are independent of the setting for ImageResolution:

FilledSmallSquare The following graphics formats depend on the setting for ImageResolution:

FilledSmallSquare The following three-dimensional graphics formats are supported:

FilledSmallSquare The following sound formats are supported:

FilledSmallSquare Notebook and Cell objects, as well as any box expression obtained from ToBoxes, can be exported in the following formats:

FilledSmallSquare These formats generate markup material which maintains much of the document structure that exists within Mathematica.

FilledSmallSquare With HTML and TeX formats, Export operates like HTMLSave and TeXSave.

FilledSmallSquare The following XML formats are supported:

FilledSmallSquare With format "MathML", box expressions are exported in terms of MathML presentation elements. Other expressions are if possible exported in TraditionalForm format.

FilledSmallSquare With format "XML", notebook or cell expressions, and notebook objects, are exported as NotebookML. SymbolicXML expressions are exported as general XML. Other expressions are exported as ExpressionML.

FilledSmallSquare Arbitrary Mathematica expressions can be exported in the following formats:

FilledSmallSquare Many details can be specified in the setting for ConversionOptions.

FilledSmallSquare The following general options can be given:

FilledSmallSquare Possible formats accepted by Export are given in the list $ExportFormats.

FilledSmallSquare Export["!prog", expr, "format"] exports data to a pipe.

FilledSmallSquare See Section 1.11.3, Section 2.10.19 and Section 2.12.7.

FilledSmallSquare See also: Import, ExportString, $ExportFormats, Display, Write, Put, TeXSave, HTMLSave, MathMLForm, DumpSave.

FilledSmallSquare New in Version 4; modified in 5.0.

Additional Information