Skip to content

Instantly share code, notes, and snippets.

@Sarchis
Created February 10, 2013 14:33
Show Gist options
  • Save Sarchis/4749754 to your computer and use it in GitHub Desktop.
Save Sarchis/4749754 to your computer and use it in GitHub Desktop.
how to create a file in python
new_file = open('nameFile', 'w')
new = new_file.write(string)
new_file.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment