Modified results.write() to allow any object with a write() method to be used as the output file.
Authored by: bugman 2008-06-28
Parent: [r6508]
Child: [r6510]