title: How do I add from a newly created csv file Column?
body: <p>I would like to create a file in real time and add the values corresponding to the columns to an existing file in real time in the corresponding <code>CSV</code> file.</p>
  
  <p>How can I add each of the <code>CSV</code> files that I generate in that program?</p>
  
  <p>I'll write down the code I'm using now.</p>
  
  <pre><code>import csv
  
  for i in range(10):
  SD="Save datas(Angle)"+str(i)  ## 해당 각도별로 배열을 지정
  
  SDArray1=str(SD)               ## 파일을 만들어준다
  
  f=open(SDArray1+".csv","a+t")#  ## 이름을 만들어준 파일을 생성
  
  csv_writer = csv.writer(f)
  csv_writer.writerow([SD])
  print("One loop has started")
  f.close()#
  
  for i in range(1,5):
      cdata=[i]
      f=open(SDArray1+".csv","a+t")
  
      csv_writer =csv.writer(f)
      csv_writer.writerow(cdata)
  
      print(cdata)
      f.close()#
      print("loop's finished!")
  </code></pre>
  
  <p>If you look at the code above, a certain file is created. I completed the next file, but I was wondering how to add columns to the file.</p>