tags:

views:

24

answers:

0

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>

Now the contents of outfile.txt file is shown below

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 had asked the same question before but unfortunately no response fro anyone. Can u please provide me any inputs related