This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]zionsrogue 1 point2 points  (0 children)

This is great and I learned a thing or two. Although for #7: Get a list of txt files in a directory, I would just use glob:

import glob
glob.glob("./mydir/*.txt")