This is a commercial library. I want to use existing functionality from Ant to accomplish this task. I am certain it is possible, I just do not know Ant well enough yet. There has to be some sort of loop that can be created to read from a file line by line and stop when a certain string is encountered. I can copy and edit the teaxt once I have it in a variable.
Rebhan, Gilbert wrote: > > -----Original Message----- > From: ca_iancu [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 09, 2008 3:22 PM > To: user@ant.apache.org > Subject: how to copy and edit a section of a text file > > /* > > Hello, I'm trying to edit an XML file by searching with regular > expressions. > Once found, the text will be copied, changed and appended at the end (or > beginning) of the aforementioned found text.The lines I am looking for > have > the following format: > > ... > > */ > > Maybe xmltask / xpath is an option !? > see = > http://www.oopsconsultancy.com/software/xmltask/ > > Regards, Gilbert > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/how-to-copy-and-edit-a-section-of-a-text-file-tp19898362p19904051.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]