title: Use Python to write on specific columns in csv file
body: <p>I have data in a file and I need to write it to CSV file in  specific column. The data in file is like this:</p>
  
  <pre><code>002100
  002077
  002147
  </code></pre>
  
  <p>My code is this:</p>
  
  <pre><code>import csv
  
  f = open ("file.txt","r")
  with open("watout.csv", "w") as output:
      for line in f :
         c.writerows(line)
  </code></pre>
  
  <p>It is always writes on the first column. How could I resolve this?
  Thanks.</p>