ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: (newbie) how insert content of one file into middle of another one
Date Fri, 18 Jul 2003 02:53:57 GMT
Why not write a quick and dirty java app to accomplish the task using
java.io.RandomAccessFile ?
Martin
----- Original Message -----
From: "Monika Adamczyk" <monika7@yahoo.com>
To: <user@ant.apache.org>
Sent: Thursday, July 17, 2003 3:50 PM
Subject: (newbie) how insert content of one file into middle of another one


> 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
>
>

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


Mime
View raw message