if data.has_key('name') and data.has_key('quote'): f = open("quotes.dat", 'a') f.write("<li><b>%s:</b> %s</li>n" % (data['name'].value, data['quote'].value)) f.close()
f=open("quotes.dat", 'r') if f: print f.read() f.close()
Related Scripts with Example Source Code in same category :