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

# FileOverwriteRuleEnum

**FileOverwriteRuleEnum** enumeration constants define rules to be used during export if a file with the same name already exists.

```cpp theme={null}
typedef enum {
 FOR_Replace,
 FOR_Append,
 FOR_Rename
} FileOverwriteRuleEnum;
```

## Elements

| **Name** | **Description** |
| - | - |
| FOR\_Replace | Replace the existing file with the new one. |
| FOR\_Append | Append the new file to the existing file. |
| FOR\_Rename | Rename the new file. |

## Used in

[**IFileExportParams::FileOverwriteRule**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/fileexportparams.md#fileoverwriterule)
