Skip to content

Instantly share code, notes, and snippets.

@benrules2
Created January 5, 2017 23:31
Show Gist options
  • Select an option

  • Save benrules2/685d107743d4b1cd2353858b05a80e67 to your computer and use it in GitHub Desktop.

Select an option

Save benrules2/685d107743d4b1cd2353858b05a80e67 to your computer and use it in GitHub Desktop.
File output containing message
def write_file(filename, message):
with open(filename, "w") as file:
file.write(message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment