RE: putting value in txtfile

2005-01-27 Thread Rebhan, Gilbert
[mailto:[EMAIL PROTECTED] Sent: Wednesday, January 26, 2005 5:02 PM To: Ant Users List Subject: Re: putting value in txtfile --- Erik Hatcher <[EMAIL PROTECTED]> wrote: > Um nevermind. I missed the part that there is "just a blank > line". A custom FilterRe

Re: putting value in txtfile

2005-01-26 Thread Matt Benson
--- Erik Hatcher <[EMAIL PROTECTED]> wrote: > Um nevermind. I missed the part that there > is "just a blank > line". A custom FilterReader would work - have it > only affect the 4th > line. > > Erik All you have to match is the line break count, so assuming you know what those a

Re: putting value in txtfile

2005-01-26 Thread Erik Hatcher
Um nevermind. I missed the part that there is "just a blank line". A custom FilterReader would work - have it only affect the 4th line. Erik On Jan 26, 2005, at 8:55 AM, Erik Hatcher wrote: task or the replaceregex filter reader on a would do the trick, I think. Erik

Re: putting value in txtfile

2005-01-26 Thread Ninju Bohra
You might want to read up on the task along with the nested elements. One route... Write your property out to a temp file Use the along with sub-element to concat the first 3 lines of the orginal file with the temp file (stored in another file). Then use another (with sub-element) to take

Re: putting value in txtfile

2005-01-26 Thread Erik Hatcher
task or the replaceregex filter reader on a would do the trick, I think. Erik On Jan 26, 2005, at 8:31 AM, Rebhan, Gilbert wrote: Hi, yet another txtfileprocessing question. File looks like that : 01 bla 02 bla 03 bla 04 05 06 07 bla 08 bla 09 bla How to put the value of a property on l