# -*- coding: utf-8 -*-

fr = open('diary.txt','r')
for line in fr:
	print line,
print
fr.close()

contents = raw_input("Anything want to share?\n")
fw = open('diary.txt','a+')
fw.write(contents+'\n')
fw.close()

@@ -194,16 +194,241 @@
 s+'%5Cn')%0A
+%0Awhile True:%0A%09yn = raw_input('Do you wanna share more?(y/n)')%0A%09if yn == 'n':%0A%09%09break%0A%09elif yn == 'y':%0A%09%09contents = raw_input(%22Okay, let's share more!%5Cn%22)%0A%09%09fw.write(contents+'%5Cn')%0A%09else:%0A%09%09print %22Please type in 'y' or 'n'.%22%0A%0A
 fw.close

Update diary.py