.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEReadCSVFile

.. oe:function:: OEReadCSVFile

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

      .. oe:api::

         bool OEReadCSVFile(oemolistream& ifs, OEMolBase& mol,
                            unsigned int flavor = OEIFlavor::CSV::DEFAULT)

   .. oe:language:: python

      .. oe:api:: python

         OEReadCSVFile(ifs: oemolistream, mol: Union[OEGraphMol,OEMol,OEQMol],
                       flavor: int) -> bool

   Read the next molecule from a comma-separated-value, CSV, file
   opened by ``ifs`` into ``mol``. The specific layout of the file is
   described in the :ref:`section_moltaggeddata_CSV` section. The
   ``flavor`` argument is a value OR'd together from the values in the
   :oe:constns:`OEChem::OEIFlavor::CSV` namespace. Returns ``true`` if a
   molecule was successfully read, ``false`` otherwise.


