code: private void write(int c) throws IOException {
  		if (!firstCharacterWritten) {
  			if (c != '\n') {
  				out.write(c);
  				firstCharacterWritten = true;
  			}
  		} else {
  			out.write(c);
  		}
  	}
docs: Writes the character on the output stream
  
  @param c
  the character to write
  @throws IOException
  if an IOException occurs