> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateModelFromFile Method of the ClassificationEngine Object

> CreateModelFromFile method of the ClassificationEngine object in the ABBYY FineReader Engine API — loads a classification model from a file on disk.

Loads the classification model from file.

## Syntax

### C++

```cpp theme={null}
HRESULT CreateModelFromFile(
  BSTR     FilePath,
  IModel** Result
);
```

### C\#

```csharp theme={null}
IModel CreateModelFromFile( string FilePath );
```

### Visual Basic .NET

```vb theme={null}
Function CreateModelFromFile(filePath As String) As IModel
```

## Parameters

FilePath

\[in] Specifies the full path to the file which contains a trained classification model. The file must have been created by the call to the [SaveToFile](/fine-reader/engine/api-reference/classification-related-objects/model/savetofile-method) method of the [Model](/fine-reader/engine/api-reference/classification-related-objects/model) object.

Result

\[out, retval] A pointer to the IModel\* pointer variable that receives the interface pointer of the output [Model](/fine-reader/engine/api-reference/classification-related-objects/model) object.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

[ClassificationEngine](/fine-reader/engine/api-reference/classification-related-objects/classificationengine)
