text =
"
This is a test.
"
file = open(
"
test.txt
"
,
"
w
"
) file.write(text) file.close()