public final void writeBytes ( String s ) throws IOException { int len = s . length ( ) ; for ( int i = 0 ; i < len ; i ++ ) { write ( ( byte ) s . charAt ( i ) ) ; } }
Writes the string to the file as a sequence of bytes . Each character in the string is written out in sequence by discarding its high eight bits .