Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 65624 invoked by uid 500); 17 Jul 2003 22:50:03 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 65574 invoked from network); 17 Jul 2003 22:50:01 -0000 Received: from web21413.mail.yahoo.com (216.136.232.184) by daedalus.apache.org with SMTP; 17 Jul 2003 22:50:01 -0000 Message-ID: <20030717225008.83423.qmail@web21413.mail.yahoo.com> Received: from [64.28.86.59] by web21413.mail.yahoo.com via HTTP; Thu, 17 Jul 2003 15:50:08 PDT Date: Thu, 17 Jul 2003 15:50:08 -0700 (PDT) From: Monika Adamczyk Subject: (newbie) how insert content of one file into middle of another one To: user@ant.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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