# -*- coding: utf-8 -*-
import os
ls =os.linesep

#get filename

fname = raw_input('input a file name to save filenames:%s' % ls)
	

#
all=[]
print"\nEnter lines *'.'by itself to quit).\n"

#loop until user terminates input

while True:
    	entry=raw_input('>')
	if entry=='EXIT':
       		break
    	elif entry=='READ':
			fobj=open(fname,'r+')	
			for eachline in fobj:
				print eachline
    	elif entry=='WRITE':
       		all.append(entry)

#
fobj=open(fname,'w+')
fobj.writelines(['%s%s' % (x,ls)for x in all])
fobj.close()
		
	

@@ -132,15 +132,9 @@
 %0A%0A#%0A
-all=%5B%5D
 %0A
+
 prin
@@ -330,17 +330,16 @@
 fname,'r
-+
 ')%09%0A%09%09%09f
@@ -404,16 +404,52 @@
 WRITE':%0A
+%09%09all=%5B%5D%0A%09%09entrytxt=raw_input('%3E%3E')%0A
        %09
@@ -469,13 +469,29 @@
 ntry
-)%0A%0A#%0A
+txt)%0A                
 fobj
@@ -508,12 +508,27 @@
 e,'w
-+
 ')%0A
+                
 fobj
@@ -574,22 +574,58 @@
 l%5D)%0A
-fobj.close()%0A%09%09
+                fobj.close()%0A        else:%09%0A%09%09break
 %0A%09%0A

Update read.py