Connector Framework Server 26.3
Connector Framework Server Help

# extract_text_from_file

The `extract_text_from_file` function uses File Content Extraction to extract text from a file.

## Syntax

    extract_text_from_file( filename )

## Arguments

Argument | Description
--- | ---
`filename` | (string) The path and file name of the file that you want to extract text from.

## Returns

String. Returns the text extracted from the file.

## Example

    local filePath = "c:/path/to/my/file.xml";
    local text = extract_text_from_file(filePath);

Copyright 2026 Open Text
Version 26.3 | Last updated July 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Connector Framework Server 26.3

Topic Title: extract_text_from_file