title: Writing to a specific column of a text file in python
body: <p>I have an array of  6 string characters which are of the datatype string and I have to write them in 1,16,19,22,51,54th position of a line respectively in a text file using python to be properly read by a software. </p>
  
  <p>The array looks like </p>
  
  <pre><code>[ABCD, 1, P, 15-06-2015, 0, Name of the account]
  </code></pre>
  
  <p>The first element of the array is always a 4 or 5 letter string. (should start from 1st position of the line or first column of the line)
  The second element is always a single digit ( should start at 16)
  The third element is always a single alphabet (should start at 19)
  The fourth element is a date (should start at 22)
  The fifth element is again a single digit (should start at 51)
  The sixth element is a varying string which contains comments about the array (should start at 54)</p>
  
  <p>Also after the sixth element there should be white spaces till 134th column </p>
  
  <p>How can I do this in python automatically because I have to similarly write 200 lines.</p>
  
  <p>Thanks in advance.</p>