addSectionFromFile

<< addSection | Back to Salience 6 python Index | prepareCollectionFromList >>

Summary

Adds the text from the supplied file into a section of the document for analysis. The supplied text should be UTF-8 encoded, not UTF-16.
This method provides a wrapper around the underlying C API method lxaAddSectionFromFile.

Syntax

salience6.addSectionFromFile(oSession, sHeader, sPath, nProcess)

Parameters

oSession A SalienceSession object previously created via openSession
sHeader A text string specifying the header for the section
sText Path to a valid text file containing text for the section
nProcess

Returns

Returns an integer return code. Possible error return codes are specified on the Errors and Warning Codes page.

<< addSection | Back to Salience 6 python Index | prepareCollectionFromList >>