Created an object which mimics the file object by providing the write() method.
This is to catch the output of the results.write() method and to store it in a string.
Authored by: bugman 2008-06-28
Parent: [r6503]
Child: [r6505]