Connector Framework Server 25.4
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 2025 Open Text
Version 25.4 | Last updated October 2025

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 25.4

Topic Title: extract_text_from_file