> ## 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.

# SaveToFile Method of the Model Object

Saves the model into a file on disk, from where it can subsequently be loaded by the call to the [IClassificationEngine::CreateModelFromFile](/fine-reader/engine/api-reference/classification-related-objects/classificationengine/createmodelfromfile-method) method.

## Syntax

### C++

```cpp theme={null}
HRESULT SaveToFile( BSTR FilePath );
```

### C\#

```csharp theme={null}
void SaveToFile( string FilePath );
```

### Visual Basic .NET

```vb theme={null}
Sub SaveToFile(FilePath As String)
```

## Parameters

Path

\[in] This parameter of the type [BSTR](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties) specifies the path to the file where the model should be saved. If a file with this name already exists, it is overwritten without prompt.

## 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

[Model](/fine-reader/engine/api-reference/classification-related-objects/model)
