How to write a variable in to file in ant? September 18, 2023 by Tarik The echo task in ANT is able to write to files <echo file="output.txt" append="true"> abc=${abc} </echo>