I have the following method in my python email code
def main():
names, emails = get_contacts('mycontacts.txt') # read contacts
message_template = read_template('message.txt')
I'd like to be able to have it read all files that end in .txt into the message_template.
Something like:
message_template = read_template('*.txt')
Thanks in advance