Skip to content
Snippets Groups Projects
Commit a0b82b8e authored by s183897's avatar s183897 :ice_skate:
Browse files

Function that creates .txt-file with string

parent 65e27b13
Branches
No related tags found
No related merge requests found
# outputs a string to a .txt file
def stringToFile(string, fileName):
f = open(fileName, "w")
f.write(string)
f.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment