title: How to read multiple csv in python and get one csv as output
body: <p>I had already asked the question how to solve it in pandas. But now I need a non pandas version.</p>
  
  <p>My Code</p>
  
  <pre><code>import glob
  import os
  
  ## path
  path = r'C:/x/x/Desktop/xxx/'
  all_files = glob.glob(os.path.join(path, '*.csv'))
  
  ## column
  column_headers = ['Date', 'Time', 'Duration', 'IP', 'Request']
  
  ## open only one csv. -- I want to read here not only 1 file --
  ## my approach:
  ## with open(all_files) as log, ....
  with open('log.csv') as log, open('out355.csv', 'w') as out:
      out.write(';'.join(column_headers)+'\n') 
      while True:
          try:
              lines = [next(log).strip('\n').split(' ',4) for i in range(6)][3:]
              out.write(';'.join(lines[1][:2]+[l[4] for l in lines])+'\n')
          except StopIteration:
              break
  </code></pre>
  
  <p>Since I'm new to python, I can not just modify my running code just so well. So I would be glad if I would get the complete code.</p>
  
  <p>Thanks!</p>