WriteHWL 

2.0     

Writes a word list to a file.

int WriteHWL( HWL hwl, HFILE hfile )

Parameters

hwl

Handle to a word list.

hfile

A handle to a file previously opened for writing.

Return Value

Returns HRCR_OK if successful; otherwise, returns one of the following negative values:

Constant

Description

HRCR_ERROR

Invalid parameter, or file or other error.

HRCR_MEMERR

Insufficient memory.

 

Comments

The words are saved as ANSI text, one word per line, followed by a carriage return and linefeed. The file must already exist and be open for writing. An application can append to the file by positioning the file pointer at the end before calling WriteHWL. In this context, a word can represent a phrase and contain spaces or other noncharacters, such as  New York  and  ne re-do-well. 

For a description of word lists and how a recognizer uses them, see  Configuring the HRC  in Chapter 5,  The Recognition Process. 

See Also

CreateHWL, ReadHWL