title: Trying to use glob to iterate through files in a folder in python
body: <p>I keep just getting the data i want from the last file in the list. I appreciate the program working that much, but i would rather it worked through all of the files in the folder.</p>
  
  <pre><code>   import os
     import glob
     os.chdir('C:\Users\U2970\Documents\Arcgis\Text_files\Data_exports')
     for file in list(glob.glob('*.txt')):
         reader = open(file)
  
     from EXPORT_COLUMN_SET import *
  
     try:
          data = column_set(reader)
          data.start_data_printer()
     finally:
          reader.close()
  </code></pre>