title: How To extract the values from csv file in ant?
body: <p><code>Washington</code><br>
  <code>New York</code><br>
  <code>New Delhi</code><br>
  <code>India</code><br>
  <code>United States Of America</code>  </p>
  
  <p>In ant I want to extract all the values as separate values like washington, new, delhi, india, united, states, of, america. Altough I am able to extract them line wise as</p>
  
  <pre><code>&lt;loadfile property="message" srcFile="../Ant_Scripts/Name.csv"/&gt;
  &lt;target name="init"&gt;
  &lt;for list="${message}" delimiter="${line.separator}" param = "val"&gt;
  &lt;echo message=${val}/&gt;
  </code></pre>
  
  <p>but I am not able to extract them as individual units that is once I got New Delhi or New York I should be able to get New and Delhi seprately also.</p>
  
  <hr>
  
  <blockquote>
    <p>can you please post your ant script – Satya </p>
  </blockquote>
  
  <pre><code>    &lt;loadfile property="message" srcFile="../Ant_Scripts/Name.csv"/&gt;
      &lt;target name="init"&gt;
           &lt;for list="${message}" delimiter="${line.separator}" param = "val"&gt;
                &lt;sequential&gt;
                     &lt;echo&gt;$val&lt;/echo&gt;
                &lt;/sequential&gt;
           &lt;/for&gt;
      &lt;/target&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>This code will print all the names line by line, but after this I want to break those lines on the basis of space.</p>