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

# CreateNewDictionary Method of the LanguageDatabase Object

This method creates a new empty user dictionary at the specified location and returns interface pointer of the [Dictionary](/fine-reader/engine/api-reference/language-related-objects/dictionary) object associated with it.

## Syntax

### C++

```cpp theme={null}
HRESULT CreateNewDictionary(
  BSTR           FileName,
  LanguageIdEnum LanguageId,
  IDictionary**  Result
);
```

### C\#

```csharp theme={null}
IDictionary CreateNewDictionary(
  string         FileName,
  LanguageIdEnum LanguageId
);
```

### Visual Basic .NET

```vb theme={null}
Function CreateNewDictionary( _
  FileName As String, _
  LanguageId As LanguageIdEnum, _
) As IDictionary
```

## Parameters

FileName

\[in] Contains the full path to the dictionary file to be created. If the specified dictionary file already exists, it is overwritten without prompt.

LanguageId

\[in] A variable of [LanguageIdEnum](/fine-reader/engine/api-reference/enumerations/languageidenum) type that defines the language for the dictionary.

Result

\[out, retval] A pointer to IDictionary\* pointer variable that receives the interface pointer of the [Dictionary](/fine-reader/engine/api-reference/language-related-objects/dictionary) object associated with the newly created dictionary. You may then edit this dictionary via this object methods.

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

[Working with Dictionaries](/fine-reader/engine/guided-tour/advanced-techniques/working-with-dictionaries)

[LanguageDatabase](/fine-reader/engine/api-reference/language-related-objects/languagedatabase)

[Dictionary](/fine-reader/engine/api-reference/language-related-objects/dictionary)
