.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEReadMDLFile

.. oe:function:: OEReadMDLFile

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

      .. oe:api::

         bool OEReadMDLFile(oemolistream& ifs, OEMolBase& mol,
                            const char* id = "")

   .. oe:language:: python

      .. oe:api:: python

         OEReadMDLFile(ifs: oemolistream, mol: Union[OEGraphMol,OEMol,OEQMol],
                       id: str = "") -> bool

   Reads the contents of the MDL mol or SDF file into the specified
   :ref:`OEMolBase <OEChem_OEMolBase>`.


