Why this would not work:
<loadfile srcfile="a.txt" property="content-a"/>
<loadfile srcfile="b.txt" property="content-b"/>
<echo file="b.txt" message="${content-a}${content-b}"/>The only problem I see is that each time b.txt will be updated. It is better not to update files in place or have a valid condition to avoid repetitive updates (maybe using <touch file="timestamp" with <if><not><uptodate>).
- Alexey.
Ivan Ivanov wrote:
Dear Colleagues,
I want to do something relative simple: I have two text files say a.txt and b.txt and I want to place the contents of a.txt in the beginning of b.txt. I thought I could use <echo> task, but now I see it won't do this.
Can you give me any advice?
Thank you in advance
Ivan
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
