title: convert csv to a string variable
body: <p>I am  a beginner in python. I    need help with   the following</p>
  
  <p>I have a   comma separated csv file, eg</p>
  
  <pre><code>a,b,c
  d,e,f
  g,h,i
  </code></pre>
  
  <p>I  need  to convert   to a string variable eg
      s='a,b,c\n,d,e,f\n,g,h,i\n'</p>
  
  <p>I  tried something, but i am going wrong somewhere.</p>
  
  <pre><code>import os
  import csv
  Filename=r"c:\Users\das\Desktop\a.csv"
  z=open(Filename, 'r')
  reader=csv.reader(Filename.split('\n'),delimiter=',')
  def csv2str():
      for row  in reader:
          v=','.join(row)
  
  a=csv2str()
  </code></pre>