elis aeris wrote:
> this one doesn't work; did I misread your string?
> 
> f = open("data.ini","w")
> 
> title = "taitle"
> 
> f.write('title is \"%title\"\n ')
> 
> 
> f.close()

Yes, you misread my string.  The correct form of the above would be as follows:

f = open("data.ini","w")

title = "taitle"

f.write('title is \"%s\"\n' % title)

f.close()


-Robert
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to