Use AntContribs <for> with delimiter="${line.separator}", but thats more a
question for the USER list, not the DEVELOPER list.

Jan

> -----Ursprüngliche Nachricht-----
> Von: Mohan Gunupati [mailto:[EMAIL PROTECTED]
> Gesendet am: Montag, 13. September 2004 22:58
> An: [EMAIL PROTECTED]
> Betreff: Help on file read
> 
> 
> Hi Guys,
>  
> I need some help, before getting to you I tried myself and the web,
> even some books. 
>  
> Here is what I have been trying to do and achieve.
>  
> I want read a file containing strings ( a word in each line)  and I
> want to iterate a new target for each line existing.
>  
> ex: lets say file1.txt contains
>  row1
>  row2
>  row3.
>  
> I want to iterate, through the file and read each string and pass that
> string to a new target.
> I want or read a file (step-1, done) in a target( target-1) and for
> each row in the file (step-2, ?) (iterate for each row in the 
> file) run
> target-2.
> 
>  
> I am able to read the file using <loadfile>, the limitation is it
> returns everything as one property ( which is one string 
> containing all
> rows). I need more like an array or some object which is iterates.
>  
> I also figured, this is something todo for ant2. Don't know 
> if there is
> an alternative.
>  
>  
> Your time and help is much appreciated.
> thanks.
>  
>  
> Mohan Gunupati.
> 
> 

Reply via email to