readDictionary()
Appends the entries form a file to the internal dictionary.
Synopsis
int readDictionary( string filename );
Parameters
Parameter | Description |
---|---|
filename | File with translation entries |
Return value
If successful, the function returns 0 otherwise, -1.
Error
Invalid or missing arguments
Description
Reads the entries from the file filename of the internal translation table and appends them to the internal dictionary. If several dictionaries are imported and appended, it is important that they all have the same structure (number of languages and sequence). The separator for the entries is exactly one TAB. See multi-language capability for the exact structure.
Example
The following example appends the file "entries.txt" to the dictionary.
main()
{
readDictionary("entries.txt");
}
Assignment
Multi-language capability
Availability
CTRL