title: How can I format the data written to a text file to be done in columns?
body: <p>Hi I have a bunch of data Im writing to a text file, each line of the rows holds about 4 different pieces of data, I want to make it so that each type is data is aligned in rows.</p>
  
  <p>Here is the line that writes the data.</p>
  
  <pre><code>output.write(aName + "    "  + aObjRef + "    "  + aValue + "    "  + strDate + "    " + note  + (System.getProperty("line.separator")));
  </code></pre>
  
  <p>Here is how the data looks when written right now.</p>
  
  <pre><code>CR_2900_IPGR_AL    2900.EV2    Alarm    111107    
  CR_2900_IMPT_AL    2900.EV311    Alarm    111107    
  CR_STH_CHL_AL    2900.EV315    Alarm    111107    
  CR_OAT_AL    2900.EV318    Alarm    111107    
  SLB_102_2270A Temp Event    60215.EV1    Fault    111107    
  MACF_70300_IMPT_AL    70300.EV2    Alarm    111107 
  </code></pre>
  
  <p>And here is how Id like it to look</p>
  
  <pre><code>CR_2900_IPGR_AL             2900.EV2        Alarm      111107    
  CR_2900_IMPT_AL             2900.EV311      Alarm      111107    
  CR_STH_CHL_AL               2900.EV315      Alarm      111107    
  CR_OAT_AL                   2900.EV318      Alarm      111107    
  SLB_102_2270A Temp Event    60215.EV1       Fault      111107    
  MACF_70300_IMPT_AL          70300.EV2       Alarm      111107 
  </code></pre>