Just implementing some standard functions that would be expected for a text writer.
Implemented the Write method.