Erstellen und Schreiben in eine neue Datei

f = open("demofile2.txt", "w") # Creating and writing to a new file
f.write("demofile2 file created, with this content in!")
f.close()
DoctorX0x