Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# FaceTemplate.toFile Method

Module: FaceTemplate

## Definition

Exports the face template object to a file.

Python

    to_file(self, path: str) -> None

Parameters

> `path` str
> in Path to the file to export the face template object to.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    void toFile(String? path)

Parameters

> `path` String
> in Path to the file to export the face template object to.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public void ToFile(string path)

Parameters

> `path` string
> in Path to the file to export the face template object to.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public void toFile(String path) throws FaceException

Parameters

> `path` String
> in Path to the file to export the face template object to.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public func toFile(path: String) throws

Parameters

> `path` String
> in Path to the file to export the face template object to.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3FaceTemplate_ToFile (
        ID3_FACE_TEMPLATE hFaceTemplate,
        const char * path)

Parameters

> `hFaceTemplate` ID3_FACE_TEMPLATE
> in Handle to the FaceTemplate object.
> `path` const char *
> in Path to the file to export the face template object to.

Returns

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