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

# LoadFromFile Method

This method restores the contents of the object from a file on disk, where it should have previously been saved by the [**SaveToFile**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/savetofile.md) method.

## Syntax

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

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

## Parameters

**Path**

\[in] A path to the file on disk where the contents of the object is stored. If a file specified by this path was not obtained as a result of a call to the [**SaveToFile**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/savetofile.md) method of an object of the same type as the current one, some specific error code is returned.

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

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

## See also

[**SaveToFile**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/savetofile.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)
