B.21 LoadFileTask
Prev | Appendix B. Core tasks | Next

## B.21 LoadFileTask

The `LoadFileTask` loads the contents of a (text) file into a single property.

Table B.22: Attributes

Name | Type | Description | Default | Required
--- | --- | --- | --- | ---
`property` | `String` | The name of the property to set. | n/a | Yes
file (or `srcFile`) | `String` | The file to load. | n/a | Yes

### B.21.1 Examples

    <loadfile property="version" file="version.txt"/>

### B.21.2 Supported Nested Tags:

- `filterchain`

Prev | Up | Next
B.20 InputTask | Home | B.22 MkdirTask