xxxxxxxxxx
# yes, realy, str can't do makefile but ustead, use :
with open('FILENAME.txt', 'w') as f:
f.write('test')
i = f.read() #returns the file's content
#or you can use:
j = open('FILENAME.txt', 'w')
j.write('test to write 2')
k = j.read() #returns the file's content