Hi Eric, You can try foreach task to read lines from a file:
<foreach item="Line" in="abc.txt" delim="," property="first,second"> <echo message="First field: ${first}. Second field: ${second}" /> </foreach> You can read different values from that line using a delimiter or you can read the entire line. Regards, Sandeep -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Fetzer Sent: Tuesday, April 19, 2005 11:24 AM To: Nant Users Subject: [Nant-users] Input from file I'm trying to do something fairly simple that I've never had need to do. I'd like to get a line from a text file. It's a one line file and I need that line (not an xml file). Is there already a task to do that, or do I use script; and if script, how do I place that info in a property... Thanks, Eric __________________________________ Do you Yahoo!? Plan great trips with Yahoo! Travel: Now over 17,000 guides! http://travel.yahoo.com/p-travelguide ------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users