Important: The information in this document is obsolete and should not be used for new development.
SRNewLanguageObjectFromDataFile
You can use theSRNewLanguageObjectFromDataFilefunction to read a language object from a data file.
pascal OSErr SRNewLanguageObjectFromDataFile ( SRRecognitionSystem system, SRLanguageObject *languageObject, short fRefNum);
system- A recognition system.
languageObject- On exit, a reference to a new language object.
fRefNum- A file reference number of an open data file.
DESCRIPTION
TheSRNewLanguageObjectFromDataFilefunction returns, in thelanguageObjectparameter, a reference to a language object whose description is stored in the open data file that has the file reference number specified by thefRefNumparameter.SRNewLanguageObjectFromDataFilereads data beginning at the current file mark.If the language object is successfully created and initialized, the file mark is left at the byte immediately following the language object description. Otherwise, if the language object data is not appropriately formatted,
SRNewLanguageObjectFromDataFilereturns the result codekSRCantReadLanguageObjectas its function result and the file mark is not moved.SPECIAL CONSIDERATIONS
You should call theSRReleaseObjectfunction to release the language object reference returned bySRNewLanguageObjectFromDataFilewhen you're done using it.