RosettaCodeData/Task/Write-entire-file/Python/write-entire-file-1.py

3 lines
49 B
Python

with open(filename, 'w') as f:
f.write(data)