- TIBCO BusinessEvents®
- Standard
- File

# File.readFileAsString()

## Signature

`String readFileAsString(String filePath, [String encoding = $1UTF-8$1])`

## Domain

ACTION, BUI

## Description

Read the contents of the specified file and return a string.

## Parameters

Name | Type | Description
--- | --- | ---
`filePath` | `String` | The file to read
`encodingArguments` | `String` | Encoding used. Optional Parameter. Default value = $1UTF-8$1

## Returns

Type | Description
--- | ---
`String` | Contents of the file

## Cautions

none