.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEWriteCSVFile

.. oe:function:: OEWriteCSVFile

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

      .. oe:api::

         void OEWriteCSVFile(oemolostream& ofs, OEMolBase& mol,
                             unsigned int flavor = OEOFlavor::CSV::DEFAULT)

   .. oe:language:: python

      .. oe:api:: python

         OEWriteCSVFile(ofs: oemolostream, mol: Union[OEGraphMol,OEMol,OEQMol],
                        flavor: int) -> None

   Write the molecule ``mol`` to the stream ``ofs`` in the
   :oe:const:`OEChem::OEFormat::CSV` format as described in the
   :ref:`section_moltaggeddata_CSV` section.

   .. seealso::

      :oe:constns:`OEChem::OEOFlavor::CSV`

