98
cat 98.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
#py2
if __name__ == '__main__':
fp = open('test.txt','w')
string = raw_input('please input a string:\n')
string = string.upper()
fp.write(string)
fp = open('test.txt','r')
print fp.read()
fp.close()
#py3