Mega Code Archive
Categories
/
Python Tutorial
/
File
Write(string)
f = open(r'c:\text\somefile.txt', 'w') f.write('this\nis no\nhaiku') f.close()