ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Monika Adamczyk <moni...@yahoo.com>
Subject (newbie) how insert content of one file into middle of another one
Date Thu, 17 Jul 2003 22:50:08 GMT
Hi,

I have a file that gets generated by one of the ant tasks (and I have
no control over this task, so I can't modify it). Once the first file
gets generated, I need to read content of another file and insert it
into the first one at specific location (definitively not at the end of
beginning so I can't concatenate them).
e.g: 
file 1 has 3 lines

line1
line2
line3

file 2 has 2 lines
lineA
lineB

As a final result I want to have in file 1

line1
line2
lineA
lineB
line3

Can someone provide me with an example how to do it?

Monika

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message