View Subcategory

Write a string to a file

python
open('test.txt', 'wt').write('Hello World!')

Append to a file

python
open('test.txt', 'at').write('Hello World!\n')