If the EOL is the correct one for your platform, you
should be able to use 'delimiter="${line.separator}"'.

-Matt

--- Rob van Oostrum <[EMAIL PROTECTED]> wrote:
> I would say it depends on the platform you're
> running on ... Unix-type files
> use \n, Windows-type files use \r\n (or \n\r, I can
> never remember). Of
> course, you could write a simple program that reads
> the contents of a file
> into a String ... and then you parse for whatever's
> between 'line1' and
> 'line2'
> 
> cheers,
> Rob "why look something up if you can write a
> program to answer the question
> for you"
> 
> > -----Original Message-----
> > From: Laurent Picandet
> [mailto:[EMAIL PROTECTED]
> > Sent: October 27, 2003 4:54 AM
> > To: [EMAIL PROTECTED]
> > Subject: Foreach and "End Of Line" delimiter
> >
> >
> > Hello,
> >
> > I loaded a file <file1> in my build like :
> > line1
> > line2
> > line3
> >
> > <loadfile property="myFile" srcFile="file1" />
> >
> > I need looping on each line.
> > I'm using foreach but I didn't find the correct
> end of line delimiter :
> > (I'tried "/n", "//n")
> > <foreach list="${myFile}" delimiter="?????"
> param="myParam" target
> > ="aTarget"/>
> >
> >
> > Thank's for advance
> > Laurent
> >
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to