# extract_text_from_file

The `extract_text_from_file` function uses KeyView 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 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm