ed> How can I save string to a tempororay buffer and then write it to a ed> file afterwards? Take a look at the StringIO and cStringIO modules. -- Skip Montanaro (skip at pobox.com) http://www.mojam.com/ http://www.musi-cal.com/