title: how to write in next row using python?
body: <p>1234 5678 9876 542 1231; 2333 1234 5678 579</p>
  
  <p>i want to write this data in a csv (myfile.csv) file from a .txt (murtuz.txt) file such that after semi colon it starts from the next row.</p>
  
  <p>I have tried the code mentioned below, it helps me to write data in csv file but i am failed to change the line after semi colon.</p>
  
  <pre><code>import csv  
  from StringIO import StringIO
  import sys
  
  data = open("murtuz.txt","r").read()  
  data1 = StringIO(data)  
  print data1          
  reader = csv.reader(data1, delimiter=' ',)     
  for row in reader:  
      print row  
  
  out = csv.writer(open("myfile.csv","w"), delimiter=',')  
  out.writerow(row)  
  sys.exit()
  </code></pre>
  
  <p>need some experts' help.<br>
  thanks in advance.  </p>