oqueeh
.net
All topics
>
Python
Create a text file in Python
with
open
(
"filename.txt"
,
"w"
)
as
fs
:
fs
.
write
(
"Some text"
)
This overwrites the file if it exists.