Hi ruben,
               Thanks for your input .I am able to read that particular line
but unable to read the particular word in the line.Can u please suggest me
any method.Infact the link which u had given was not a straight forward one.

Thanks
Maddy

On Fri, Jun 26, 2009 at 3:15 PM, Ruben Willems <[email protected]>wrote:

> Hi
>
> the example at the bottom of the page :
> http://nant.sourceforge.net/release/latest/help/tasks/foreach.html
>
> that could help
>
>
> with kind regards
> Ruben Willems
>
>
>
>
> On Fri, Jun 26, 2009 at 11:38 AM, Maddy <[email protected]> wrote:
>
>>
>> Hi, I had posted a nant.build file which will read each line in the
>> outfile.txt.
>>
>>
>> <target name="main" description="compiles the source code">
>> <property name="i" value="0"/>
>> <foreach item="Line" in="outfile.txt" property="x" trim="Both">
>> <property name="i" value="${int::parse(i) + 1}"/>
>>   <if test="${i==LineToRead}">
>>      <property name="myInt" value="${x}"/>
>>   </if>
>>  </foreach>
>> <echo>found  ${myInt} at line ${LineToRead}</echo>
>>
>>
>>
>> EID              Packet name                           Name
>> e352312         a.cpp
>> [email protected]
>>
>>
>>
>> Now Can anyone suggest me a way by which i can read the 2ndline 3rd
>> column i.e i should be able to read the mail ID and echo this thing to
>> me.I am not sure if this is the right forum to ask this question .May
>> be if anyone had a better understanding and working experience in nant
>> could help me out with this as i am stuck up with this for past some
>> days.
>>
>> I am invoking nant from cruise control.NET.
>>
>> Thanks and regards
>> Maddy
>>
>>
>>
>

Reply via email to