Descripción
Write text to a file using a context manager
File Template: ❌
Prefix
file:write
Scopes
python
Snippet de código
with open('$1', 'w') as file:
file.write('$2')
Write text to a file using a context manager
file:write
python
with open('$1', 'w') as file:
file.write('$2')