Writes a string.
@param str string to be written
@throws IOException If an I/O error occurs
See Implementation
Writes a string.
@param str string to be written
@throws IOException If an I/O error occurs