Another option would be to use the xmlpeek 
(http://nant.sourceforge.net/release/latest/help/tasks/xmlpeek.html) to read 
values from
an xml file.  That might end up cleaner, might not.

Thanks,
Ryan 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Lazea
Sent: Thursday, January 20, 2005 8:43 AM
To: Matt Ward
Cc: NAnt Users
Subject: Re: [Nant-users] Parsing txt files.

Thanks a lot, Matt. I totally forgot about this task :-).

-- Adrian.

Matt Ward wrote:
> Hi Adrian,
> 
> Take a look at the foreach task and see if it fits your requirements
> 
> http://nant.sourceforge.net/release/latest/help/tasks/foreach.html
> 
> "Loops over lines in the file properties.csv, where each line is of
> the format name,value.
> 
> <foreach item="Line" in="properties.csv" delim="," property="x,y">
>     <echo message="Read pair ${x}=${y}" />
> </foreach>"
> 
> Might also be worth taking a look at the loadfile and regex tasks.  
> 
> http://nant.sourceforge.net/release/latest/help/tasks/loadfile.html
> http://nant.sourceforge.net/release/latest/help/tasks/regex.html
> 
> Rgds,
> 
> Matt.


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to