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() -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/tutor/attachments/20070714/f1e39a81/attachment-0001.htm