title: how to make the data in a file inorder?
body: <p>I have a testfile.txt as below</p>
  
  <pre><code>/path/        345 firstline
  /path2/     346     second line
  /path3/ 347   third line having spaces
  /path4/  3456 fourthline
  </code></pre>
  
  <p>Now I want to make it as below</p>
  
  <pre><code>/path/,345,firstline
  /path2/,346,second line
  /path3/,347,third line having spaces
  /path4/,3456,fourthline
  </code></pre>
  
  <p>According the above output, The data should be formed with 3 columns and all columns separated with commas.There may be one or more spaces between the columns in the input file.Example,</p>
  
  <blockquote>
    <p><strong>/path/</strong> and <strong>3456</strong></p>
  </blockquote>
  
  <p>can be separated by 2 tabs also. The third column contains the spaces as it is.</p>
  
  <p>Can anyone can help me on this?</p>