Skip to content

Instantly share code, notes, and snippets.

@jalbertbowden
Forked from jrsmith/remedialfilework.py
Created August 13, 2014 17:01
Show Gist options
  • Select an option

  • Save jalbertbowden/a2f674a1589553ae7005 to your computer and use it in GitHub Desktop.

Select an option

Save jalbertbowden/a2f674a1589553ae7005 to your computer and use it in GitHub Desktop.
from glob import glob
with open('masterfile.csv', 'a') as mf:
for filename in glob('*.csv'):
with open(filename) as f:
contents = f.readlines()
mf.write(contents)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment