Quick reply... check out the StringIO module.... Regards, Fuzzy http://www.voidspace.org.uk/python/index.shtml