Skip to content

Instantly share code, notes, and snippets.

@tdhopper
Created August 10, 2012 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdhopper/3316174 to your computer and use it in GitHub Desktop.
Save tdhopper/3316174 to your computer and use it in GitHub Desktop.
f = open('ydata-ysm-advertiser-bids-v1_0.txt', 'r')
for x in f.xreadlines():
with open("split/" + x.split()[0].replace("/","") + ".csv", "a+") as out:
out.write(", ".join(x.split()))
out.write("\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment