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

This method saves the contents of the object into a file on disk.

## Syntax

```cpp C++ theme={null}
HRESULT SaveToFile( BSTR Path );
```

```csharp C# theme={null}
void SaveToFile( string Path );
```

```vb Visual Basic .NET theme={null}
Sub SaveToFile( Path As String )
```

## Parameters

**Path**

\[in] This parameter specifies the path to the file where the object contents 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 FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## Remarks

The following objects provide this method:

* [**Region**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/region.md)
* [**JpegExtendedParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/jpegextendedparams.md)

## See also

[**LoadFromFile**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/loadfromfile.md)

[**SaveToMemory**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/savetomemory.md)

[**LoadFromMemory**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/loadfrommemory.md)
