.. oe:namespace:: OEChem

.. meta::
   :keywords: OEWriteXYZFile, WriteXYZFile

.. oe:function:: OEWriteXYZFile

   .. oe:language:: c++ java csharp

      .. oe:api::

         void OEWriteXYZFile(oemolostream& ofs, const OEMolBase& mol,
                             bool charges = true, bool symbols = true,
                             bool doubleprecision = false)

   .. oe:language:: python

      .. oe:api:: python

         OEWriteXYZFile(ofs: oemolostream, mol: Union[OEGraphMol,OEMol,OEQMol],
                        charges: bool = True, symbols: bool = True,
                        doubleprecision: bool = False) -> None


   Writes the molecule as an XMol XYZ format file to the output stream 'ofs'.

