title: Convert csv file to pipe delimited file in Python
body: <p>I want to convert a comma-delimited CSV file to a pipe-delimited file with Python:</p>
  
  <p>This is how I am reading my csv file:</p>
  
  <pre><code>with open('C://Path//InputFile.csv') as fOpen:
      reader     =     csv.DictReader(fOpen)
  
      for row in reader:
          for (k, v) in row.items():
              columns[k].append(v)
  
  c = csv.writer(open("C://Path//OutputFile.txt","wb"), delimiter="|")
  </code></pre>
  
  <p>How would I write it as pipe delimited file?</p>