.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEReadCDXFile

.. oe:function:: OEReadCDXFile

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

      .. oe:api::

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

   .. oe:language:: python

      .. oe:api:: python

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

   Reads the contents of a ChemDraw CDX file into the specified
   :ref:`OEMolBase <OEChem_OEMolBase>`.

