Simply specifying a file destination, echo will create, write, or append to a file.
echo
<echo file=example.txt" append="false"> hello world </echo>