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

This method saves the attached file on disk. It does not save the contents of the [PDFAttachment](/fine-reader/engine/api-reference/document-related-objects/pdfattachment) object, but only the attached file itself, so that you will be unable to retrieve, e.g., the attachment description or binding type from the saved data.

## Syntax

### C++

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

### C\#

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

### Visual Basic .NET

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

## Parameters

Path

\[in] This parameter stores the full path to the file. If this file 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

[PDFAttachment](/fine-reader/engine/api-reference/document-related-objects/pdfattachment)
