Converted the write() and write_data() methods to the new design and into module functions.
Authored by: bugman 2008-08-01
Parent: [r7060]
Child: [r7062]