You could also make it an xml file and use the <xmlpeek> task. If you end up with many of these values, it might get a little messy to have a one-line text file for each.
http://nant.sourceforge.net/release/latest/help/tasks/xmlpeek.html Thanks, Ryan -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gert Driesen Sent: Thursday, December 23, 2004 2:20 AM To: 'Praveen Babu'; nant-users@lists.sourceforge.net Subject: RE: [Nant-users] need help on nant > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Praveen Babu > Sent: woensdag 22 december 2004 15:03 > To: nant-users@lists.sourceforge.net > Subject: [Nant-users] need help on nant > > Hi , > I am Naren > > I have one text file, which contains "1.0.0" value. My problem how to > assign this value to lacal variable in nant build file. I need this > value in two tasks. > can you give me solution to this problem. > advance thanks Try using <loadfile> : <loadfile property="version" file="version.txt" /> <echo message="version=${version}" /> Hope this helps, Gert ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users