ant Print the contents of a file


Example

To print the contents of a file, we can use loadfile to read a file into a local property, and then use echo to print the value of it.

<loadfile property="contents" srcFile="example.txt" />
<echo message="${contents}" />