.. index:: 
  !FaceIndexer.toFile Method
  
.. _id3_face_face_indexer_to_file_class_method:

===============================================================================
FaceIndexer.toFile Method
===============================================================================

Module: :ref:`FaceIndexer<id3_face_face_indexer_class>`

Definition
----------

Saves the face indexer object to a file.


.. tab-set::

    .. tab-item:: Python
      :sync: Python

      .. code:: Python

        to_file(self, path: str) -> None

      **Parameters**

        .. line-block::

          ``path`` str
          :guilabel:`in` Path to the file to export the face indexer object to.


      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


    .. tab-item:: Dart
      :sync: Dart

      .. code:: Dart

        void toFile(String? path)

      **Parameters**

        .. line-block::

          ``path`` String
          :guilabel:`in` Path to the file to export the face indexer object to.


      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


    .. tab-item:: C#
      :sync: C#

      .. code:: C#

        public void ToFile(string path)

      **Parameters**

        .. line-block::

          ``path`` string
          :guilabel:`in` Path to the file to export the face indexer object to.


      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


    .. tab-item:: Java
      :sync: Java

      .. code:: Java

        public void toFile(String path) throws FaceException

      **Parameters**

        .. line-block::

          ``path`` String
          :guilabel:`in` Path to the file to export the face indexer object to.


      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


    .. tab-item:: Swift
      :sync: Swift

      .. code:: Swift

        public func toFile(path: String) throws

      **Parameters**

        .. line-block::

          ``path`` String
          :guilabel:`in` Path to the file to export the face indexer object to.


      **Exceptions**

        .. line-block::

          :ref:`FaceException<id3_face_face_exception>`
          An error has occurred during Face Library execution.


    .. tab-item:: C
      :sync: C

      .. code:: C

        int id3FaceIndexer_ToFile (
            ID3_FACE_INDEXER hFaceIndexer, 
            const char * path)

      **Parameters**

        .. line-block::

          ``hFaceIndexer`` :ref:`ID3_FACE_INDEXER<id3_face_face_indexer_class>`
          :guilabel:`in` Handle to the FaceIndexer object.

          ``path`` const char *
          :guilabel:`in` Path to the file to export the face indexer object to.


      **Returns**

        .. line-block::

          ``int``
          An error code.
          See :ref:`id3FaceError<id3_face_face_error_enum>` file for the list of possible error codes.


