7 lines
161 B
Plaintext
7 lines
161 B
Plaintext
|
# -*- mode: python -*-
|
||
|
# name: file-write
|
||
|
# key: fw
|
||
|
# --
|
||
|
f_name = ${1:name}
|
||
|
with open(f'~/Documents/$0/{f_name}.txt', 'w') as file:
|
||
|
file.write(${2:content})
|