title: How to get each substring in a file by Ant
body: <p>I have a file contains following lines of strings separated by "|", </p>
  
  <pre><code>C:\Temp\demo\AAA.dat   |    C:\test\input\AAA.dat
  C:\Temp\build\BBB.bat  |    C:\test\java\BBB.bat
  C:\Temp\test\CCC.xml   |    C:\Apps\ftp\CCC.xml
  </code></pre>
  
  <p>after I read each line, I hope to extract each string separated by "|",
  ie, after i get 1st line,
  I need to get both C:\Temp\demo\AAA.dat and C:\test\input\AAA.dat;
  Pls help how to use ant to do it???</p>
  
  <p>I use following code I can only get each line :</p>
  
  <pre><code>&lt;loadfile property="filelist" srcfile="C:\Temp\file1.txt"/&gt;
  &lt;target name="test" depends="chkInput" description="test"&gt;
  
      &lt;for param = "line" list="${filelist}" delimiter="${line.separator}"&gt; 
         &lt;sequential&gt; 
              &lt;echo&gt;@{line}&lt;/echo&gt; 
         &lt;/sequential&gt; 
      &lt;/for&gt; 
  &lt;/target&gt;
  </code></pre>
  
  <p>Not each substring separated by "|", pls help how to get each substring separated by "|"?</p>